X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fin_gp2x.h;h=035cdedc4581616bb01432e6bb771d9cff02f511;hb=e99d80480196f551f7e6c06deae3750de19b4c0e;hp=30af5c358bb6e7c81298f29df268d53f324c323c;hpb=13b692eb4ee66fd0c7d4d45bdead750a4defa90e;p=libpicofe.git diff --git a/gp2x/in_gp2x.h b/gp2x/in_gp2x.h index 30af5c3..035cded 100644 --- a/gp2x/in_gp2x.h +++ b/gp2x/in_gp2x.h @@ -1,3 +1,17 @@ -void in_gp2x_init(void *vdrv); -int in_gp2x_update(void *drv_data, int *binds); +struct in_default_bind; + +void in_gp2x_init(const struct in_default_bind *defbinds); + +enum { GP2X_BTN_UP = 0, GP2X_BTN_LEFT = 2, GP2X_BTN_DOWN = 4, GP2X_BTN_RIGHT = 6, + GP2X_BTN_START = 8, GP2X_BTN_SELECT = 9, GP2X_BTN_L = 10, GP2X_BTN_R = 11, + GP2X_BTN_A = 12, GP2X_BTN_B = 13, GP2X_BTN_X = 14, GP2X_BTN_Y = 15, + GP2X_BTN_VOL_UP = 23, GP2X_BTN_VOL_DOWN = 22, GP2X_BTN_PUSH = 27 }; + +/* FIXME */ +#ifndef GP2X_DEV_GP2X +extern int gp2x_dev_id; +#define GP2X_DEV_GP2X 1 +#define GP2X_DEV_WIZ 2 +#define GP2X_DEV_CAANOO 3 +#endif