X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fgp2x%2Fin_gp2x.h;fp=frontend%2Fgp2x%2Fin_gp2x.h;h=6428a63ad2e6b27c5d60bf1b6ae56541b3dda670;hb=221be40d20d1fc4e1c597b087ea54130b80739f1;hp=0000000000000000000000000000000000000000;hpb=50306d8d6e20ede70c2dea274ae1099082aea88f;p=pcsx_rearmed.git diff --git a/frontend/gp2x/in_gp2x.h b/frontend/gp2x/in_gp2x.h new file mode 100644 index 00000000..6428a63a --- /dev/null +++ b/frontend/gp2x/in_gp2x.h @@ -0,0 +1,18 @@ + +void in_gp2x_init(void); + +/* to be set somewhere in platform code */ +extern struct in_default_bind in_gp2x_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