BTN_VOL_UP = 23, BTN_VOL_DOWN = 22, BTN_PUSH = 27 };
static const char * const in_gp2x_prefix = IN_PREFIX;
-static const char * const in_gp2x_keys[IN_GP2X_NBUTTONS] = {
+static const char *in_gp2x_keys[IN_GP2X_NBUTTONS] = {
[0 ... IN_GP2X_NBUTTONS-1] = NULL,
[BTN_UP] = "UP", [BTN_LEFT] = "LEFT", [BTN_DOWN] = "DOWN", [BTN_RIGHT] = "RIGHT",
[BTN_START] = "START", [BTN_SELECT] = "SELECT", [BTN_L] = "L", [BTN_R] = "R",
return;
}
in_gp2x_get_bits = in_gp2x_get_wiz_bits;
+ in_gp2x_keys[BTN_START] = "MENU";
break;
default:
#ifdef FAKE_IN_GP2X
unsigned int gp2x_get_ticks_ms_(void)
{
+ /* approximate /= 1000 */
unsigned long long v64;
- v64 = (unsigned long long)gp2x_get_ticks_us_() * 4195;
- return v64 >> 22;
+ v64 = (unsigned long long)gp2x_get_ticks_us_() * 4294968;
+ return v64 >> 32;
}
static void timer_cleanup(void)