- K_X360_DPAD_UP,
- K_X360_DPAD_DOWN,
- K_X360_DPAD_LEFT,
- K_X360_DPAD_RIGHT,
- K_X360_START,
- K_X360_BACK,
- K_X360_LEFT_THUMB,
- K_X360_RIGHT_THUMB,
- K_X360_LEFT_SHOULDER,
- K_X360_RIGHT_SHOULDER,
- K_X360_A,
- K_X360_B,
- K_X360_X,
- K_X360_Y,
- K_X360_LEFT_TRIGGER,
- K_X360_RIGHT_TRIGGER,
- K_X360_LEFT_THUMB_DOWN,
- K_X360_LEFT_THUMB_UP,
- K_X360_LEFT_THUMB_LEFT,
- K_X360_LEFT_THUMB_RIGHT,
- K_X360_RIGHT_THUMB_DOWN,
- K_X360_RIGHT_THUMB_UP,
- K_X360_RIGHT_THUMB_LEFT,
- K_X360_RIGHT_THUMB_RIGHT,
-};
-
-static int joybuttonkey360menu[] =
-{
- K_UPARROW,
- K_DOWNARROW,
- K_LEFTARROW,
- K_RIGHTARROW,
- K_PAUSE,
- K_ESCAPE,
- 0,
- 0,
- 0,
- 0,
- K_ENTER,
- K_ESCAPE,
- 0,
- 0,
- 0,
- 0,
- K_DOWNARROW,
- K_UPARROW,
- K_LEFTARROW,
- K_RIGHTARROW,
- 0,
- 0,
- 0,
- 0,
+ {K_X360_DPAD_UP, K_UPARROW},
+ {K_X360_DPAD_DOWN, K_DOWNARROW},
+ {K_X360_DPAD_LEFT, K_LEFTARROW},
+ {K_X360_DPAD_RIGHT, K_RIGHTARROW},
+ {K_X360_START, K_ESCAPE},
+ {K_X360_BACK, K_ESCAPE},
+ {K_X360_LEFT_THUMB, 0},
+ {K_X360_RIGHT_THUMB, 0},
+ {K_X360_LEFT_SHOULDER, 0},
+ {K_X360_RIGHT_SHOULDER, 0},
+ {K_X360_A, K_ENTER},
+ {K_X360_B, K_ESCAPE},
+ {K_X360_X, 0},
+ {K_X360_Y, 0},
+ {K_X360_LEFT_TRIGGER, 0},
+ {K_X360_RIGHT_TRIGGER, 0},
+ {K_X360_LEFT_THUMB_DOWN, K_DOWNARROW},
+ {K_X360_LEFT_THUMB_UP, K_UPARROW},
+ {K_X360_LEFT_THUMB_LEFT, K_LEFTARROW},
+ {K_X360_LEFT_THUMB_RIGHT, K_RIGHTARROW},
+ {K_X360_RIGHT_THUMB_DOWN, 0},
+ {K_X360_RIGHT_THUMB_UP, 0},
+ {K_X360_RIGHT_THUMB_LEFT, 0},
+ {K_X360_RIGHT_THUMB_RIGHT, 0},