/* joystick/mouse port 1 */

DEFEVENT(JOYPORT1_START,_T("[Joystick port 1]"), AM_INFO, 0,1,0)

DEFEVENT(MOUSE1_FIRST, _T(""), AM_DUMMY, 0,0,0)

DEFEVENT2(MOUSE1_HORIZ,_T("Mouse1 Horizontal"),_T("Horiz"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,1,0,101)
DEFEVENT2(MOUSE1_VERT,_T("Mouse1 Vertical"),_T("Vert"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,1,1,102)
DEFEVENT2(MOUSE1_HORIZ_INV,_T("Mouse1 Horizontal (inverted)"),_T("Horiz Inv"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,1,0|IE_INVERT,103)
DEFEVENT2(MOUSE1_VERT_INV,_T("Mouse1 Vertical (inverted)"),_T("Vert Inv"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,1,1|IE_INVERT,104)
DEFEVENT2(MOUSE1_UP,_T("Mouse1 Up"),_T("Up"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,1,DIR_UP,105)
DEFEVENT2(MOUSE1_DOWN,_T("Mouse1 Down"),_T("Down"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,1,DIR_DOWN,106)
DEFEVENT2(MOUSE1_LEFT,_T("Mouse1 Left"),_T("Left"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,1,DIR_LEFT,107)
DEFEVENT2(MOUSE1_RIGHT,_T("Mouse1 Right"),_T("Right"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,1,DIR_RIGHT,108)
DEFEVENT2(MOUSE1_WHEEL,_T("Mouse1 Wheel"),_T("Wheel"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,1,2,109)

DEFEVENT(MOUSE1_LAST, _T(""), AM_DUMMY, 0,0,0)

DEFEVENT(MOUSE_CDTV_HORIZ,_T("CDTV Mouse Horizontal"),AM_JOY_AXIS,8,1,0|IE_CDTV)
DEFEVENT(MOUSE_CDTV_VERT,_T("CDTV Mouse Vertical"),AM_JOY_AXIS,8,1,1|IE_CDTV)
DEFEVENT(MOUSE_CDTV_UP,_T("CDTV Mouse Up"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,1,DIR_UP|IE_CDTV)
DEFEVENT(MOUSE_CDTV_DOWN,_T("CDTV Mouse Down"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,1,DIR_DOWN|IE_CDTV)
DEFEVENT(MOUSE_CDTV_LEFT,_T("CDTV Mouse Left"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,1,DIR_LEFT|IE_CDTV)
DEFEVENT(MOUSE_CDTV_RIGHT,_T("CDTV Mouse Right"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,1,DIR_RIGHT|IE_CDTV)

DEFEVENT2(JOY1_HORIZ,_T("Joy1 Horizontal"),_T("Horiz"),AM_JOY_AXIS,0,1,DIR_LEFT|DIR_RIGHT,1)
DEFEVENT2(JOY1_VERT,_T("Joy1 Vertical"),_T("Vert"),AM_JOY_AXIS,0,1,DIR_UP|DIR_DOWN,2)
DEFEVENT2(JOY1_HORIZ_POT,_T("Joy1 Horizontal (Analog)"),_T("Horiz Analog"),AM_JOY_AXIS,128,1,1,3)
DEFEVENT2(JOY1_VERT_POT,_T("Joy1 Vertical (Analog)"),_T("Vert Analog"),AM_JOY_AXIS,128,1,0,4)
DEFEVENT2(JOY1_HORIZ_POT_INV,_T("Joy1 Horizontal (Analog, inverted)"),_T("Horiz Analog Inv"),AM_JOY_AXIS,128,1,1|IE_INVERT,5)
DEFEVENT2(JOY1_VERT_POT_INV,_T("Joy1 Vertical (Analog, inverted)"),_T("Vert Analog Inv"),AM_JOY_AXIS,128,1,0|IE_INVERT,6)

DEFEVENT2(JOY1_LEFT,_T("Joy1 Left"),_T("Left"),AM_K,16,1,DIR_LEFT,7)
DEFEVENT2(JOY1_RIGHT,_T("Joy1 Right"),_T("Right"),AM_K,16,1,DIR_RIGHT,8)
DEFEVENT2(JOY1_UP,_T("Joy1 Up"),_T("UP"),AM_K,16,1,DIR_UP,9)
DEFEVENT2(JOY1_DOWN,_T("Joy1 Down"),_T("Down"),AM_K,16,1,DIR_DOWN,10)
DEFEVENT2(JOY1_LEFT_UP,_T("Joy1 Left+Up"),_T("Left+Up"),AM_K,16,1,DIR_LEFT|DIR_UP,11)
DEFEVENT2(JOY1_LEFT_DOWN,_T("Joy1 Left+Down"),_T("Left+Down"),AM_K,16,1,DIR_LEFT|DIR_DOWN,12)
DEFEVENT2(JOY1_RIGHT_UP,_T("Joy1 Right+Up"),_T("Right+Up"),AM_K,16,1,DIR_RIGHT|DIR_UP,13)
DEFEVENT2(JOY1_RIGHT_DOWN,_T("Joy1 Right+Down"),_T("Right+Down"),AM_K,16,1,DIR_RIGHT|DIR_DOWN,14)

DEFEVENT2(JOY1_FIRE_BUTTON,_T("Joy1 Fire/Mouse1 Left Button"),_T("B1"),AM_K,4,1,JOYBUTTON_1,15)
DEFEVENT2(JOY1_2ND_BUTTON,_T("Joy1 2nd Button/Mouse1 Right Button"),_T("B2"),AM_K,4,1,JOYBUTTON_2,16)
DEFEVENT2(JOY1_3RD_BUTTON,_T("Joy1 3rd Button/Mouse1 Middle Button"),_T("B3"),AM_K,4,1,JOYBUTTON_3,17)
DEFEVENT2(JOY1_CD32_PLAY,_T("Joy1 CD32 Play"),_T("CD32 PLAY"),AM_K,4,1,JOYBUTTON_CD32_PLAY,18)
DEFEVENT2(JOY1_CD32_RWD,_T("Joy1 CD32 RWD"),_T("CD32 RWD"),AM_K,4,1,JOYBUTTON_CD32_RWD,19)
DEFEVENT2(JOY1_CD32_FFW,_T("Joy1 CD32 FFW"),_T("CD32 FFW"),AM_K,4,1,JOYBUTTON_CD32_FFW,20)
DEFEVENT2(JOY1_CD32_GREEN,_T("Joy1 CD32 Green"),_T("CD32 G"),AM_K,4,1,JOYBUTTON_CD32_GREEN,21)
DEFEVENT2(JOY1_CD32_YELLOW,_T("Joy1 CD32 Yellow"),_T("CD32 Y"),AM_K,4,1,JOYBUTTON_CD32_YELLOW,22)
DEFEVENT2(JOY1_CD32_RED,_T("Joy1 CD32 Red"),_T("CD32 R"),AM_K,4,1,JOYBUTTON_CD32_RED,23)
DEFEVENT2(JOY1_CD32_BLUE,_T("Joy1 CD32 Blue"),_T("CD32 B"),AM_K,4,1,JOYBUTTON_CD32_BLUE,24)

/* joystick/mouse port 2 */

DEFEVENT(JOYPORT2_START,_T("[Joystick port 2]"), AM_INFO, 0,2,0)

DEFEVENT(MOUSE2_FIRST, _T(""), AM_DUMMY, 0,0,0)

DEFEVENT2(MOUSE2_HORIZ,_T("Mouse2 Horizontal"),_T("Horiz"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,2,0,101)
DEFEVENT2(MOUSE2_VERT,_T("Mouse2 Vertical"),_T("Vert"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,2,1,102)
DEFEVENT2(MOUSE2_HORIZ_INV,_T("Mouse2 Horizontal (inverted)"),_T("Horiz Inv"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,2,0|IE_INVERT,103)
DEFEVENT2(MOUSE2_VERT_INV,_T("Mouse2 Vertical (inverted)"),_T("Vert Inv"),AM_MOUSE_AXIS|AM_JOY_AXIS,8,2,1|IE_INVERT,104)
DEFEVENT2(MOUSE2_UP,_T("Mouse2 Up"),_T("UP"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,2,DIR_UP,105)
DEFEVENT2(MOUSE2_DOWN,_T("Mouse2 Down"),_T("Down"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,32,2,DIR_DOWN,106)
DEFEVENT2(MOUSE2_LEFT,_T("Mouse2 Left"),_T("Left"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,2,DIR_LEFT,107)
DEFEVENT2(MOUSE2_RIGHT,_T("Mouse2 Right"),_T("Right"),AM_KEY|AM_JOY_BUT|AM_MOUSE_BUT,64,2,DIR_RIGHT,108)

DEFEVENT(MOUSE2_LAST, _T(""), AM_DUMMY, 0,0,0)

DEFEVENT2(JOY2_HORIZ,_T("Joy2 Horizontal"),_T("Horiz"),AM_JOY_AXIS,0,2,DIR_LEFT|DIR_RIGHT,1)
DEFEVENT2(JOY2_VERT,_T("Joy2 Vertical"),_T("Vert"),AM_JOY_AXIS,0,2,DIR_UP|DIR_DOWN,2)
DEFEVENT2(JOY2_HORIZ_POT,_T("Joy2 Horizontal (Analog)"),_T("Horiz Analog"),AM_JOY_AXIS,128,2,1,3)
DEFEVENT2(JOY2_VERT_POT,_T("Joy2 Vertical (Analog)"),_T("Vert Analog"),AM_JOY_AXIS,128,2,0,4)
DEFEVENT2(JOY2_HORIZ_POT_INV,_T("Joy2 Horizontal (Analog, inverted)"),_T("Horiz Analog Inv"),AM_JOY_AXIS,128,2,1|IE_INVERT,5)
DEFEVENT2(JOY2_VERT_POT_INV,_T("Joy2 Vertical (Analog, inverted)"),_T("Vert Analog Inv"),AM_JOY_AXIS,128,2,0|IE_INVERT,6)

DEFEVENT2(JOY2_LEFT,_T("Joy2 Left"),_T("Left"),AM_K,16,2,DIR_LEFT,7)
DEFEVENT2(JOY2_RIGHT,_T("Joy2 Right"),_T("Right"),AM_K,16,2,DIR_RIGHT,8)
DEFEVENT2(JOY2_UP,_T("Joy2 Up"),_T("Up"),AM_K,16,2,DIR_UP,9)
DEFEVENT2(JOY2_DOWN,_T("Joy2 Down"),_T("Down"),AM_K,16,2,DIR_DOWN,10)
DEFEVENT2(JOY2_LEFT_UP,_T("Joy2 Left+Up"),_T("Left+Up"),AM_K,16,2,DIR_LEFT|DIR_UP,11)
DEFEVENT2(JOY2_LEFT_DOWN,_T("Joy2 Left+Down"),_T("Left+Down"),AM_K,16,2,DIR_LEFT|DIR_DOWN,12)
DEFEVENT2(JOY2_RIGHT_UP,_T("Joy2 Right+Up"),_T("Right+Up"),AM_K,16,2,DIR_RIGHT|DIR_UP,13)
DEFEVENT2(JOY2_RIGHT_DOWN,_T("Joy2 Right+Down"),_T("J Right+Down"),AM_K,16,2,DIR_RIGHT|DIR_DOWN,14)

DEFEVENT2(JOY2_FIRE_BUTTON,_T("Joy2 Fire/Mouse2 Left Button"),_T("B1"),AM_K,4,2,JOYBUTTON_1,15)
DEFEVENT2(JOY2_2ND_BUTTON,_T("Joy2 2nd Button/Mouse2 Right Button"),_T("B2"),AM_K,4,2,JOYBUTTON_2,16)
DEFEVENT2(JOY2_3RD_BUTTON,_T("Joy2 3rd Button/Mouse2 Middle Button"),_T("B3"),AM_K,4,2,JOYBUTTON_3,17)
DEFEVENT2(JOY2_CD32_PLAY,_T("Joy2 CD32 Play"),_T("CD32 PLAY"),AM_K,4,2,JOYBUTTON_CD32_PLAY,18)
DEFEVENT2(JOY2_CD32_RWD,_T("Joy2 CD32 RWD"),_T("CD32 RWD"),AM_K,4,2,JOYBUTTON_CD32_RWD,19)
DEFEVENT2(JOY2_CD32_FFW,_T("Joy2 CD32 FFW"),_T("CD32 FFW"),AM_K,4,2,JOYBUTTON_CD32_FFW,20)
DEFEVENT2(JOY2_CD32_GREEN,_T("Joy2 CD32 Green"),_T("CD32 G"),AM_K,4,2,JOYBUTTON_CD32_GREEN,21)
DEFEVENT2(JOY2_CD32_YELLOW,_T("Joy2 CD32 Yellow"),_T("CD32 Y"),AM_K,4,2,JOYBUTTON_CD32_YELLOW,22)
DEFEVENT2(JOY2_CD32_RED,_T("Joy2 CD32 Red"),_T("CD32 R"),AM_K,4,2,JOYBUTTON_CD32_RED,23)
DEFEVENT2(JOY2_CD32_BLUE,_T("Joy2 CD32 Blue"),_T("CD32 B"),AM_K,4,2,JOYBUTTON_CD32_BLUE,24)

DEFEVENT(LIGHTPEN_FIRST, _T(""), AM_DUMMY, 0,0,0)

DEFEVENT(LIGHTPEN_HORIZ,_T("Lightpen Horizontal"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,5,0)
DEFEVENT(LIGHTPEN_VERT,_T("Lightpen Vertical"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,5,1)
DEFEVENT(LIGHTPEN_HORIZ_INV,_T("Lightpen Horizontal (inverted)"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,5,0|IE_INVERT)
DEFEVENT(LIGHTPEN_VERT_INV,_T("Lightpen Vertical (inverted)"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,5,1|IE_INVERT)
DEFEVENT(LIGHTPEN_LEFT,_T("Lightpen Left"),AM_K,1,5,DIR_LEFT)
DEFEVENT(LIGHTPEN_RIGHT,_T("Lightpen Right"),AM_K,1,5,DIR_RIGHT)
DEFEVENT(LIGHTPEN_UP,_T("Lightpen Up"),AM_K,1,5,DIR_UP)
DEFEVENT(LIGHTPEN_DOWN,_T("Lightpen Down"),AM_K,1,5,DIR_DOWN)
DEFEVENT(LIGHTPEN_HORIZ2,_T("Dual Lightpen Horizontal #2"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,6,0)
DEFEVENT(LIGHTPEN_VERT2,_T("Dual Lightpen Vertical #2"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,6,1)
DEFEVENT(LIGHTPEN_HORIZ2_INV,_T("Dual Lightpen Horizontal #2 (inverted)"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,6,0|IE_INVERT)
DEFEVENT(LIGHTPEN_VERT2_INV,_T("Dual Lightpen Vertical #2 (inverted)"),AM_MOUSE_AXIS|AM_JOY_AXIS,0,6,1|IE_INVERT)
DEFEVENT(LIGHTPEN_LEFT2,_T("Dual Lightpen Left #2"),AM_K,1,6,DIR_LEFT)
DEFEVENT(LIGHTPEN_RIGHT2,_T("Dual Lightpen Right #2"),AM_K,1,6,DIR_RIGHT)
DEFEVENT(LIGHTPEN_UP2,_T("Dual Lightpen Up #2"),AM_K,1,6,DIR_UP)
DEFEVENT(LIGHTPEN_DOWN2,_T("Dual Lightpen Down #2"),AM_K,1,6,DIR_DOWN)
DEFEVENT(LIGHTPEN_TRIGGER2,_T("Dual Lightpen Trigger"),AM_K,2,6,JOYBUTTON_LIGHTPEN2)

DEFEVENT(LIGHTPEN_LAST, _T(""), AM_DUMMY, 0,0,0)

/* parallel port joystick adapter */

DEFEVENT(PAR_JOY1_START, _T("[Parallel port joystick adapter]"), AM_INFO, 0,3,0)

DEFEVENT2(PAR_JOY1_HORIZ,_T("Parallel Joy1 Horizontal"),_T("Horiz"),AM_JOY_AXIS,0,3,DIR_LEFT|DIR_RIGHT,1)
DEFEVENT2(PAR_JOY1_VERT,_T("Parallel Joy1 Vertical"),_T("Vert"),AM_JOY_AXIS,0,3,DIR_UP|DIR_DOWN,2)
DEFEVENT2(PAR_JOY1_LEFT,_T("Parallel Joy1 Left"),_T("Left"),AM_K,16,3,DIR_LEFT,7)
DEFEVENT2(PAR_JOY1_RIGHT,_T("Parallel Joy1 Right"),_T("Right"),AM_K,16,3,DIR_RIGHT,8)
DEFEVENT2(PAR_JOY1_UP,_T("Parallel Joy1 Up"),_T("Up"),AM_K,16,3,DIR_UP,9)
DEFEVENT2(PAR_JOY1_DOWN,_T("Parallel Joy1 Down"),_T("Down"),AM_K,16,3,DIR_DOWN,10)
DEFEVENT2(PAR_JOY1_LEFT_UP,_T("Parallel Joy1 Left+Up"),_T("Left+Up"),AM_K,16,3,DIR_LEFT|DIR_UP,11)
DEFEVENT2(PAR_JOY1_LEFT_DOWN,_T("Parallel Joy1 Left+Down"),_T("Left+Down"),AM_K,16,3,DIR_LEFT|DIR_DOWN,12)
DEFEVENT2(PAR_JOY1_RIGHT_UP,_T("Parallel Joy1 Right+Up"),_T("Right+Up"),AM_K,16,3,DIR_RIGHT|DIR_UP,13)
DEFEVENT2(PAR_JOY1_RIGHT_DOWN,_T("Parallel Joy1 Right+Down"),_T("Right+Down"),AM_K,16,3,DIR_RIGHT|DIR_DOWN,14)
DEFEVENT2(PAR_JOY1_FIRE_BUTTON,_T("Parallel Joy1 Fire Button"),_T("B1"),AM_K,4,3,JOYBUTTON_1,15)
DEFEVENT2(PAR_JOY1_2ND_BUTTON,_T("Parallel Joy1 Spare/2nd Button"),_T("B2"),AM_K,4,3,JOYBUTTON_2,16)

DEFEVENT(PAR_JOY2_START, _T(""), AM_DUMMY, 0,4,0)

DEFEVENT2(PAR_JOY2_HORIZ,_T("Parallel Joy2 Horizontal"),_T("Horiz"),AM_JOY_AXIS,0,4,DIR_LEFT|DIR_RIGHT,1)
DEFEVENT2(PAR_JOY2_VERT,_T("Parallel Joy2 Vertical"),_T("Vert"),AM_JOY_AXIS,0,4,DIR_UP|DIR_DOWN,2)
DEFEVENT2(PAR_JOY2_LEFT,_T("Parallel Joy2 Left"),_T("Left"),AM_K,16,4,DIR_LEFT,7)
DEFEVENT2(PAR_JOY2_RIGHT,_T("Parallel Joy2 Right"),_T("Right"),AM_K,16,4,DIR_RIGHT,8)
DEFEVENT2(PAR_JOY2_UP,_T("Parallel Joy2 Up"),_T("Up"),AM_K,16,4,DIR_UP,9)
DEFEVENT2(PAR_JOY2_DOWN,_T("Parallel Joy2 Down"),_T("Down"),AM_K,16,4,DIR_DOWN,10)
DEFEVENT2(PAR_JOY2_LEFT_UP,_T("Parallel Joy2 Left+Up"),_T("Left+Up"),AM_K,16,4,DIR_LEFT|DIR_UP,11)
DEFEVENT2(PAR_JOY2_LEFT_DOWN,_T("Parallel Joy2 Left+Down"),_T("Left+Down"),AM_K,16,4,DIR_LEFT|DIR_DOWN,12)
DEFEVENT2(PAR_JOY2_RIGHT_UP,_T("Parallel Joy2 Right+Up"),_T("Right+Up"),AM_K,16,4,DIR_RIGHT|DIR_UP,13)
DEFEVENT2(PAR_JOY2_RIGHT_DOWN,_T("Parallel Joy2 Right+Down"),_T("Right+Down"),AM_K,16,4,DIR_RIGHT|DIR_DOWN,14)
DEFEVENT2(PAR_JOY2_FIRE_BUTTON,_T("Parallel Joy2 Fire Button"),_T("B1"),AM_K,4,4,JOYBUTTON_1,15)
DEFEVENT2(PAR_JOY2_2ND_BUTTON,_T("Parallel Joy2 Spare/2nd Button"),_T("B2"),AM_K,4,4,JOYBUTTON_2,16)

DEFEVENT(PAR_JOY_END, _T(""), AM_DUMMY, 0,0,0)

/* qualifiers */

DEFEVENT(SPC_QUALIFIER_START,_T("[Qualifiers]"),AM_INFO, 0,0,0)

DEFEVENT(SPC_QUALIFIER1,_T("Qualifier 1"),AM_KK,0,0,AKS_QUALIFIER1)
DEFEVENT(SPC_QUALIFIER2,_T("Qualifier 2"),AM_KK,0,0,AKS_QUALIFIER2)
DEFEVENT(SPC_QUALIFIER3,_T("Qualifier 3"),AM_KK,0,0,AKS_QUALIFIER3)
DEFEVENT(SPC_QUALIFIER4,_T("Qualifier 4"),AM_KK,0,0,AKS_QUALIFIER4)
DEFEVENT(SPC_QUALIFIER5,_T("Qualifier 5"),AM_KK,0,0,AKS_QUALIFIER5)
DEFEVENT(SPC_QUALIFIER6,_T("Qualifier 6"),AM_KK,0,0,AKS_QUALIFIER6)
DEFEVENT(SPC_QUALIFIER7,_T("Qualifier 7"),AM_KK,0,0,AKS_QUALIFIER7)
DEFEVENT(SPC_QUALIFIER8,_T("Qualifier 8"),AM_KK,0,0,AKS_QUALIFIER8)
DEFEVENT(SPC_QUALIFIER_SPECIAL,_T("Qualifier Special (END)"),AM_KK,0,0,AKS_QUALIFIER_SPECIAL)
DEFEVENT(SPC_QUALIFIER_SHIFT,_T("Qualifier Shift"),AM_KK,0,0,AKS_QUALIFIER_SHIFT)
DEFEVENT(SPC_QUALIFIER_CONTROL,_T("Qualifier Control"),AM_KK,0,0,AKS_QUALIFIER_CONTROL)
DEFEVENT(SPC_QUALIFIER_ALT,_T("Qualifier Alt"),AM_KK,0,0,AKS_QUALIFIER_ALT)
DEFEVENT(SPC_QUALIFIER_WIN,_T("Qualifier Win"),AM_KK,0,0,AKS_QUALIFIER_WIN)

DEFEVENT(SPC_QUALIFIER_END, _T(""), AM_DUMMY, 0,0,0)

/* keys */

DEFEVENT(KEY_START,_T("[Keyboard]"),AM_INFO, 0,0,0)

DEFEVENTKB(KEY_F1,_T("F1"),AM_K,AK_F1,0x3b)
DEFEVENTKB(KEY_F2,_T("F2"),AM_K,AK_F2,0x3c)
DEFEVENTKB(KEY_F3,_T("F3"),AM_K,AK_F3,0x3d)
DEFEVENTKB(KEY_F4,_T("F4"),AM_K,AK_F4,0x3e)
DEFEVENTKB(KEY_F5,_T("F5"),AM_K,AK_F5,0x3f)
DEFEVENTKB(KEY_F6,_T("F6"),AM_K,AK_F6,0x40)
DEFEVENTKB(KEY_F7,_T("F7"),AM_K,AK_F7,0x41)
DEFEVENTKB(KEY_F8,_T("F8"),AM_K,AK_F8,0x42)
DEFEVENTKB(KEY_F9,_T("F9"),AM_K,AK_F9,0x43)
DEFEVENTKB(KEY_F10,_T("F10"),AM_K,AK_F10,0x44)

/* "special" keys */

DEFEVENTKB(KEY_ESC,_T("ESC"),AM_K,AK_ESC,0x01)
DEFEVENTKB(KEY_TAB,_T("Tab"),AM_K,AK_TAB,0x0f)
DEFEVENTKB(KEY_CTRL,_T("CTRL"),AM_K,AK_CTRL,0x1d)
DEFEVENTKB(KEY_CAPS_LOCK,_T("Caps Lock"),AM_K,AK_CAPSLOCK,0x3a)
DEFEVENTKB(KEY_SHIFT_LEFT,_T("Left Shift"),AM_K,AK_LSH,0x2a)
DEFEVENTKB(KEY_ALT_LEFT,_T("Left Alt"),AM_K,AK_LALT,0x38)
DEFEVENTKB(KEY_AMIGA_LEFT,_T("Left Amiga"),AM_K,AK_LAMI,0xe05b)
DEFEVENTKB(KEY_AMIGA_RIGHT,_T("Right Amiga"),AM_K,AK_RAMI,0xe05c)
DEFEVENTKB(KEY_ALT_RIGHT,_T("Right Alt"),AM_K,AK_RALT,0xe038)
DEFEVENTKB(KEY_SHIFT_RIGHT,_T("Right Shift"),AM_K,AK_RSH,0x36)
DEFEVENTKB(KEY_SPACE,_T("Space"),AM_K,AK_SPC,0x39)
DEFEVENTKB(KEY_CURSOR_UP,_T("Cursor Up"),AM_K,AK_UP,0xe048)
DEFEVENTKB(KEY_CURSOR_DOWN,_T("Cursor Down"),AM_K,AK_DN,0xe050)
DEFEVENTKB(KEY_CURSOR_LEFT,_T("Cursor Left"),AM_K,AK_LF,0xe04b)
DEFEVENTKB(KEY_CURSOR_RIGHT,_T("Cursor Right"),AM_K,AK_RT,0xe04d)
DEFEVENTKB(KEY_HELP,_T("Help"),AM_K,AK_HELP,0x00)
DEFEVENTKB(KEY_DEL,_T("Del"),AM_K,AK_DEL,0xe053)
DEFEVENTKB(KEY_BACKSPACE,_T("Backspace"),AM_K,AK_BS,0x0e)
DEFEVENTKB(KEY_RETURN,_T("Return"),AM_K,AK_RET,0x1c)

DEFEVENTKB(KEY_A,_T("A"),AM_K,AK_A,0x1e)
DEFEVENTKB(KEY_B,_T("B"),AM_K,AK_B,0x30)
DEFEVENTKB(KEY_C,_T("C"),AM_K,AK_C,0x2e)
DEFEVENTKB(KEY_D,_T("D"),AM_K,AK_D,0x20)
DEFEVENTKB(KEY_E,_T("E"),AM_K,AK_E,0x12)
DEFEVENTKB(KEY_F,_T("F"),AM_K,AK_F,0x21)
DEFEVENTKB(KEY_G,_T("G"),AM_K,AK_G,0x22)
DEFEVENTKB(KEY_H,_T("H"),AM_K,AK_H,0x23)
DEFEVENTKB(KEY_I,_T("I"),AM_K,AK_I,0x17)
DEFEVENTKB(KEY_J,_T("J"),AM_K,AK_J,0x24)
DEFEVENTKB(KEY_K,_T("K"),AM_K,AK_K,0x25)
DEFEVENTKB(KEY_L,_T("L"),AM_K,AK_L,0x26)
DEFEVENTKB(KEY_M,_T("M"),AM_K,AK_M,0x32)
DEFEVENTKB(KEY_N,_T("N"),AM_K,AK_N,0x31)
DEFEVENTKB(KEY_O,_T("O"),AM_K,AK_O,0x18)
DEFEVENTKB(KEY_P,_T("P"),AM_K,AK_P,0x19)
DEFEVENTKB(KEY_Q,_T("Q"),AM_K,AK_Q,0x10)
DEFEVENTKB(KEY_R,_T("R"),AM_K,AK_R,0x13)
DEFEVENTKB(KEY_S,_T("S"),AM_K,AK_S,0x1f)
DEFEVENTKB(KEY_T,_T("T"),AM_K,AK_T,0x14)
DEFEVENTKB(KEY_U,_T("U"),AM_K,AK_U,0x16)
DEFEVENTKB(KEY_V,_T("V"),AM_K,AK_V,0x2f)
DEFEVENTKB(KEY_W,_T("W"),AM_K,AK_W,0x11)
DEFEVENTKB(KEY_X,_T("X"),AM_K,AK_X,0x2d)
DEFEVENTKB(KEY_Y,_T("Y"),AM_K,AK_Y,0x15)
DEFEVENTKB(KEY_Z,_T("Z"),AM_K,AK_Z,0x2c)

/* numpad */

DEFEVENTKB(KEY_ENTER,_T("Numpad Enter"),AM_K,AK_ENT,0xe01c)
DEFEVENTKB(KEY_NP_0,_T("Numpad 0"),AM_K,AK_NP0,0x52)
DEFEVENTKB(KEY_NP_1,_T("Numpad 1"),AM_K,AK_NP1,0x4f)
DEFEVENTKB(KEY_NP_2,_T("Numpad 2"),AM_K,AK_NP2,0x50)
DEFEVENTKB(KEY_NP_3,_T("Numpad 3"),AM_K,AK_NP3,0x51)
DEFEVENTKB(KEY_NP_4,_T("Numpad 4"),AM_K,AK_NP4,0x4b)
DEFEVENTKB(KEY_NP_5,_T("Numpad 5"),AM_K,AK_NP5,0x4c)
DEFEVENTKB(KEY_NP_6,_T("Numpad 6"),AM_K,AK_NP6,0x4d)
DEFEVENTKB(KEY_NP_7,_T("Numpad 7"),AM_K,AK_NP7,0x47)
DEFEVENTKB(KEY_NP_8,_T("Numpad 8"),AM_K,AK_NP8,0x48)
DEFEVENTKB(KEY_NP_9,_T("Numpad 9"),AM_K,AK_NP9,0x49)
DEFEVENTKB(KEY_NP_PERIOD,_T("Numpad Period"),AM_K,AK_NPDEL,0x53)
DEFEVENTKB(KEY_NP_ADD,_T("Numpad Plus"),AM_K,AK_NPADD,0x4e)
DEFEVENTKB(KEY_NP_SUB,_T("Numpad Minus"),AM_K,AK_NPSUB,0x4a)
DEFEVENTKB(KEY_NP_MUL,_T("Numpad Multiply"),AM_K,AK_NPMUL,0x37)
DEFEVENTKB(KEY_NP_DIV,_T("Numpad Divide"),AM_K,AK_NPDIV,0x35)
DEFEVENTKB(KEY_NP_LPAREN,_T("Numpad Left Parenthesis"),AM_K,AK_NPLPAREN,0)
DEFEVENTKB(KEY_NP_RPAREN,_T("Numpad Right Parenthesis"),AM_K,AK_NPRPAREN,0)

DEFEVENTKB(KEY_BACKQUOTE,_T("Back Quote"),AM_K,AK_BACKQUOTE,0x29)
DEFEVENTKB(KEY_1,_T("1"),AM_K,AK_1,0x02)
DEFEVENTKB(KEY_2,_T("2"),AM_K,AK_2,0x03)
DEFEVENTKB(KEY_3,_T("3"),AM_K,AK_3,0x04)
DEFEVENTKB(KEY_4,_T("4"),AM_K,AK_4,0x05)
DEFEVENTKB(KEY_5,_T("5"),AM_K,AK_5,0x06)
DEFEVENTKB(KEY_6,_T("6"),AM_K,AK_6,0x07)
DEFEVENTKB(KEY_7,_T("7"),AM_K,AK_7,0x08)
DEFEVENTKB(KEY_8,_T("8"),AM_K,AK_8,0x09)
DEFEVENTKB(KEY_9,_T("9"),AM_K,AK_9,0x0a)
DEFEVENTKB(KEY_0,_T("0"),AM_K,AK_0,0x0b)
DEFEVENTKB(KEY_SUB,_T("Minus"),AM_K,AK_MINUS,0x0c)
DEFEVENTKB(KEY_EQUALS,_T("Equals"),AM_K,AK_EQUAL,0x0d)
DEFEVENTKB(KEY_BACKSLASH,_T("Backslash"),AM_K,AK_BACKSLASH,0x0e)
DEFEVENTKB(KEY_NUMBERSIGN,_T("Numbersign"),AM_K,AK_NUMBERSIGN,0x00)

DEFEVENTKB(KEY_LEFTBRACKET,_T("Left Bracket"),AM_K,AK_LBRACKET,0x1a)
DEFEVENTKB(KEY_RIGHTBRACKET,_T("Right Bracket"),AM_K,AK_RBRACKET,0x1b)
DEFEVENTKB(KEY_SEMICOLON,_T("Semicolon"),AM_K,AK_SEMICOLON,0x27)
DEFEVENTKB(KEY_SINGLEQUOTE,_T("Single Quote"),AM_K,AK_QUOTE,0x28)
DEFEVENTKB(KEY_COMMA,_T("Comma"),AM_K,AK_COMMA,0x33)
DEFEVENTKB(KEY_PERIOD,_T("Period"),AM_K,AK_PERIOD,0x34)
DEFEVENTKB(KEY_DIV,_T("Slash"),AM_K,AK_SLASH,0x35)

// DEFEVENT(KEY_,_T(""),AM_K,0,0,0x)

/* mouse wheel "keys" */

DEFEVENT(MOUSEWHEEL_DOWN,_T("Mouse Wheel Down"),AM_K,0,0,0x7a)
DEFEVENT(MOUSEWHEEL_UP,_T("Mouse Wheel Up"),AM_K,0,0,0x7b)

/* misc */

DEFEVENTKB(KEY_CDTV_STOP,_T("CDTV Stop"),AM_K,0x72,0)
DEFEVENTKB(KEY_CDTV_PLAYPAUSE,_T("CDTV Play/Pause"),AM_K,0x73,0)
DEFEVENTKB(KEY_CDTV_PREV,_T("CDTV Previous"),AM_K,0x74,0)
DEFEVENTKB(KEY_CDTV_NEXT,_T("CDTV Next"),AM_K,0x75,0)
DEFEVENTKB(KEY_CDTV_REW,_T("CDTV Rewind"),AM_K,0x76,0)
DEFEVENTKB(KEY_CDTV_FF,_T("CDTV Fast Forward"),AM_K,0x77,0)

DEFEVENTKB(KEY_0E,_T("Keycode 0x0E"),AM_K,0x0e,0)
DEFEVENTKB(KEY_1C,_T("Keycode 0x1C"),AM_K,0x1c,0)
DEFEVENTKB(KEY_2B,_T("Keycode 0x2B"),AM_K,0x2b,0x2b)
DEFEVENTKB(KEY_2C,_T("Keycode 0x2C"),AM_K,0x2c,0)
DEFEVENTKB(KEY_30,_T("Keycode 0x30"),AM_K,0x30,0x56)
DEFEVENTKB(KEY_3B,_T("Keycode 0x3B"),AM_K,0x3b,0)

DEFEVENTKB(KEY_68,_T("Keycode 0x68"),AM_K,0x68,0)
DEFEVENTKB(KEY_69,_T("Keycode 0x69"),AM_K,0x69,0)
DEFEVENTKB(KEY_6A,_T("Keycode 0x6A"),AM_K,0x6a,0)
DEFEVENTKB(KEY_6C,_T("Keycode 0x6C"),AM_K,0x6c,0)

DEFEVENTKB(KEY_INSERT,_T("Insert (PC)"),AM_K,0x47,0xe052)
DEFEVENTKB(KEY_PAGEUP,_T("Page Up (PC)"),AM_K,0x48,0xe049)
DEFEVENTKB(KEY_PAGEDOWN,_T("Page Down (PC)"),AM_K,0x49,0xe050)
DEFEVENTKB(KEY_F11,_T("F11 (PC)"),AM_K,0x4b,0x57)
DEFEVENTKB(KEY_APPS,_T("Apps (PC)"),AM_K,0x6b,0xe05d)
DEFEVENTKB(KEY_SYSRQ,_T("PrtScr/SysRq (PC)"),AM_K,0x6d,0x37)
DEFEVENTKB(KEY_PAUSE,_T("Pause/Break (PC)"),AM_K,0x6e,0x45)
DEFEVENTKB(KEY_F12,_T("F12 (PC)"),AM_K,0x6f,0x58)
DEFEVENTKB(KEY_HOME,_T("Home (PC)"),AM_K,0x70,0xe047)
DEFEVENTKB(KEY_END,_T("End (PC)"),AM_K,0x71,0xe04f)

DEFEVENTKB(KEY_78,_T("Keycode 0x78 (Reset Warning)"),AM_K,0x78,0)
DEFEVENTKB(KEY_79,_T("Keycode 0x79"),AM_K,0x79,0)
DEFEVENTKB(KEY_7A,_T("Keycode 0x7A"),AM_K,0x7a,0)
DEFEVENTKB(KEY_7B,_T("Keycode 0x7B"),AM_K,0x7b,0)
DEFEVENTKB(KEY_7C,_T("Keycode 0x7C"),AM_K,0x7c,0)
DEFEVENTKB(KEY_7D,_T("Keycode 0x7D"),AM_K,0x7d,0)
DEFEVENTKB(KEY_7E,_T("Keycode 0x7E"),AM_K,0x7e,0)
DEFEVENTKB(KEY_7F,_T("Keycode 0x7F"),AM_K,0x7f,0)

/* special */

DEFEVENT(SPC_START,_T("[Miscellaneous]"),AM_INFO,0,0,0)

DEFEVENT(SPC_CUSTOM_EVENT,_T("<Custom Event>"),AM_K,0,0,0)
DEFEVENT(SPC_ENTERGUI,_T("Enter GUI"),AM_K,0,0,AKS_ENTERGUI)
DEFEVENT(SPC_SCREENSHOT,_T("Screenshot (file)"),AM_K,0,0,AKS_SCREENSHOT_FILE)
DEFEVENT(SPC_SCREENSHOT_CLIPBOARD,_T("Screenshot (clipboard)"),AM_K,0,0,AKS_SCREENSHOT_CLIPBOARD)
DEFEVENT(SPC_VIDEORECORD, _T("Audio/Video recording"),AM_KT,0,0,AKS_VIDEORECORD)
DEFEVENT(SPC_VIDEORECORDFILE, _T("Change audio/video recording file"),AM_KT,0,0,AKS_VIDEORECORDFILE)
DEFEVENT(SPC_FREEZEBUTTON,_T("Activate Cartridge"),AM_K,0,0,AKS_FREEZEBUTTON)
DEFEVENT(SPC_FLOPPY0,_T("Change disk in DF0:"),AM_K,0,0,AKS_FLOPPY0)
DEFEVENT(SPC_FLOPPY1,_T("Change disk in DF1:"),AM_K,0,0,AKS_FLOPPY1)
DEFEVENT(SPC_FLOPPY2,_T("Change disk in DF2:"),AM_K,0,0,AKS_FLOPPY2)
DEFEVENT(SPC_FLOPPY3,_T("Change disk in DF3:"),AM_K,0,0,AKS_FLOPPY3)
DEFEVENT(SPC_CD0,_T("Change CD"),AM_K,0,0,AKS_CD0)
DEFEVENT(SPC_EFLOPPY0,_T("Eject disk in DF0:"),AM_K,0,0,AKS_EFLOPPY0)
DEFEVENT(SPC_EFLOPPY1,_T("Eject disk in DF1:"),AM_K,0,0,AKS_EFLOPPY1)
DEFEVENT(SPC_EFLOPPY2,_T("Eject disk in DF2:"),AM_K,0,0,AKS_EFLOPPY2)
DEFEVENT(SPC_EFLOPPY3,_T("Eject disk in DF3:"),AM_K,0,0,AKS_EFLOPPY3)
DEFEVENT(SPC_ECD0,_T("Eject CD"),AM_K,0,0,AKS_ECD0)
DEFEVENT(SPC_PAUSE,_T("Pause emulation"),AM_KT,0,0,AKS_PAUSE)
DEFEVENT(SPC_SINGLESTEP,_T("Single step"),AM_KT,0,0,AKS_SINGLESTEP)
DEFEVENT(SPC_WARP,_T("Warp mode"),AM_KT,0,0,AKS_WARP)
DEFEVENT(SPC_INHIBITSCREEN,_T("Toggle screen updates"),AM_KT,0,0,AKS_INHIBITSCREEN)
DEFEVENT(SPC_IRQ7,_T("Level 7 interrupt"),AM_K,0,0,AKS_IRQ7)

DEFEVENT(SPC_STATEREWIND,_T("Load previous state capture checkpoint"),AM_K,0,0,AKS_STATEREWIND)
DEFEVENT(SPC_STATECURRENT,_T("Load current state capture checkpoint"),AM_K,0,0,AKS_STATECURRENT)
DEFEVENT(SPC_STATECAPTURE,_T("Save state capture checkpoint"),AM_K,0,0,AKS_STATECAPTURE)

DEFEVENT(SPC_VOLUME_DOWN,_T("Decrease volume level"),AM_K,0,0,AKS_VOLDOWN)
DEFEVENT(SPC_VOLUME_UP,_T("Increase volume level"),AM_K,0,0,AKS_VOLUP)
DEFEVENT(SPC_VOLUME_MUTE,_T("Mute/unmute volume"),AM_KT,0,0,AKS_VOLMUTE)
DEFEVENT(SPC_MASTER_VOLUME_DOWN,_T("Decrease master volume level"),AM_K,0,0,AKS_MVOLDOWN)
DEFEVENT(SPC_MASTER_VOLUME_UP,_T("Increase master volume level"),AM_K,0,0,AKS_MVOLUP)
DEFEVENT(SPC_MASTER_VOLUME_MUTE,_T("Mute/unmute master volume"),AM_K,0,0,AKS_MVOLMUTE)
DEFEVENT(SPC_QUIT,_T("Quit emulator"),AM_K,0,0,AKS_QUIT)
DEFEVENT(SPC_SOFTRESET,_T("Reset emulation"),AM_K,0,0,AKS_SOFTRESET)
DEFEVENT(SPC_HARDRESET,_T("Hard reset emulation"),AM_K,0,0,AKS_HARDRESET)
DEFEVENT(SPC_RESTART,_T("Restart emulator"),AM_K,0,0,AKS_RESTART)
DEFEVENT(SPC_ENTERDEBUGGER,_T("Activate the built-in debugger"),AM_K,0,0,AKS_ENTERDEBUGGER)
DEFEVENT(SPC_STATESAVE,_T("Quick save state"),AM_K,0,0,AKS_STATESAVEQUICK)
DEFEVENT(SPC_STATERESTORE,_T("Quick restore state"),AM_K,0,0,AKS_STATERESTOREQUICK)
DEFEVENT(SPC_STATESAVEDIALOG,_T("Save state"),AM_K,0,0,AKS_STATESAVEDIALOG)
DEFEVENT(SPC_STATERESTOREDIALOG,_T("Restore state"),AM_K,0,0,AKS_STATERESTOREDIALOG)
DEFEVENT(SPC_TOGGLEFULLSCREEN,_T("Toggle windowed/fullscreen"),AM_KT,0,0,AKS_TOGGLEWINDOWEDFULLSCREEN)
DEFEVENT(SPC_TOGGLEFULLWINDOWFULLSCREEN,_T("Toggle full-window/fullscreen"),AM_KT,0,0,AKS_TOGGLEFULLWINDOWFULLSCREEN)
DEFEVENT(SPC_TOGGLEWINDOWFULLWINDOW,_T("Toggle window/full-window"),AM_KT,0,0,AKS_TOGGLEWINDOWFULLWINDOW)
DEFEVENT(SPC_TOGGLEDEFAULTSCREEN,_T("Toggle window/default screen"),AM_KT,0,0,AKS_TOGGLEDEFAULTSCREEN)
DEFEVENT(SPC_TOGGLEMOUSEGRAB,_T("Toggle between mouse grabbed and un-grabbed"),AM_KT,0,0,AKS_TOGGLEMOUSEGRAB)
DEFEVENT(SPC_DECREASE_REFRESHRATE,_T("Decrease emulation speed"),AM_K,0,0,AKS_DECREASEREFRESHRATE)
DEFEVENT(SPC_INCREASE_REFRESHRATE,_T("Increase emulation speed"),AM_K,0,0,AKS_INCREASEREFRESHRATE)
DEFEVENT(SPC_SWITCHINTERPOL,_T("Switch between audio interpolation methods"),AM_KT,0,0,AKS_SWITCHINTERPOL)
DEFEVENT(SPC_SWAPJOYPORTS,_T("Swap joystick ports"),AM_KT,0,0,AKS_SWAPJOYPORTS)
DEFEVENT(SPC_PASTE,_T("Paste from host clipboard"),AM_KT,0,0,AKS_PASTE)

DEFEVENT(SPC_DISKSWAPPER_NEXT,_T("Next slot in Disk Swapper"),AM_K,0,0,AKS_DISKSWAPPER_NEXT)
DEFEVENT(SPC_DISKSWAPPER_PREV,_T("Previous slot in Disk Swapper"),AM_K,0,0,AKS_DISKSWAPPER_PREV)
DEFEVENT(SPC_DISKSWAPPER_INSERT0,_T("Insert disk in current Disk Swapper slot in DF0:"),AM_K,0,0,AKS_DISKSWAPPER_INSERT0)
DEFEVENT(SPC_DISKSWAPPER_INSERT1,_T("Insert disk in current Disk Swapper slot in DF1:"),AM_K,0,0,AKS_DISKSWAPPER_INSERT1)
DEFEVENT(SPC_DISKSWAPPER_INSERT2,_T("Insert disk in current Disk Swapper slot in DF2:"),AM_K,0,0,AKS_DISKSWAPPER_INSERT2)
DEFEVENT(SPC_DISKSWAPPER_INSERT3,_T("Insert disk in current Disk Swapper slot in DF3:"),AM_K,0,0,AKS_DISKSWAPPER_INSERT3)

DEFEVENT(SPC_DISK_PREV0,_T("Previous disk image in DF0:"),AM_K,0,0,AKS_DISK_PREV0)
DEFEVENT(SPC_DISK_PREV1,_T("Previous disk image in DF1:"),AM_K,0,0,AKS_DISK_PREV1)
DEFEVENT(SPC_DISK_PREV2,_T("Previous disk image in DF2:"),AM_K,0,0,AKS_DISK_PREV2)
DEFEVENT(SPC_DISK_PREV3,_T("Previous disk image in DF3:"),AM_K,0,0,AKS_DISK_PREV3)
DEFEVENT(SPC_DISK_NEXT0,_T("Next disk image in DF0:"),AM_K,0,0,AKS_DISK_NEXT0)
DEFEVENT(SPC_DISK_NEXT1,_T("Next disk image in DF1:"),AM_K,0,0,AKS_DISK_NEXT1)
DEFEVENT(SPC_DISK_NEXT2,_T("Next disk image in DF2:"),AM_K,0,0,AKS_DISK_NEXT2)
DEFEVENT(SPC_DISK_NEXT3,_T("Next disk image in DF3:"),AM_K,0,0,AKS_DISK_NEXT3)

DEFEVENT(SPC_RTG_PREV,_T("Previous display"),AM_K,0,0,AKS_RTG_PREV)
DEFEVENT(SPC_TOGGLERTG,_T("Next display"),AM_KT,0,0,AKS_RTG_NEXT)
DEFEVENT(SPC_RTG_C,_T("Chipset Display"),AM_K,0,0,AKS_RTG_C)
DEFEVENT(SPC_RTG_0,_T("RTG Display #1"),AM_K,0,0,AKS_RTG_0)
DEFEVENT(SPC_RTG_1,_T("RTG Display #2"),AM_K,0,0,AKS_RTG_1)
DEFEVENT(SPC_RTG_2,_T("RTG Display #3"),AM_K,0,0,AKS_RTG_2)
DEFEVENT(SPC_RTG_3,_T("RTG Display #4"),AM_K,0,0,AKS_RTG_3)

DEFEVENT(SPC_INPUT_CONFIG1,_T("Select Input Configuration #1"),AM_K,0,0,AKS_INPUT_CONFIG_1)
DEFEVENT(SPC_INPUT_CONFIG2,_T("Select Input Configuration #2"),AM_K,0,0,AKS_INPUT_CONFIG_2)
DEFEVENT(SPC_INPUT_CONFIG3,_T("Select Input Configuration #3"),AM_K,0,0,AKS_INPUT_CONFIG_3)
DEFEVENT(SPC_INPUT_CONFIG4,_T("Select GamePorts Input Configuration"),AM_K,0,0,AKS_INPUT_CONFIG_4)

DEFEVENT(SPC_ARCADIA_DIAGNOSTICS,_T("Arcadia diagnostics DIP switch"),AM_K,0,0,AKS_ARCADIADIAGNOSTICS)
DEFEVENT(SPC_ARCADIA_PLAYER1,_T("Arcadia player 1"),AM_K,0,0,AKS_ARCADIAPLY1)
DEFEVENT(SPC_ARCADIA_PLAYER2,_T("Arcadia player 2"),AM_K,0,0,AKS_ARCADIAPLY2)
DEFEVENT(SPC_ARCADIA_COIN1,_T("Arcadia coin player 1"),AM_K,0,0,AKS_ARCADIACOIN1)
DEFEVENT(SPC_ARCADIA_COIN2,_T("Arcadia coin player 2"),AM_K,0,0,AKS_ARCADIACOIN2)

DEFEVENT(SPC_ALG_SERVICE,_T("American Laser Games/Picmatic Service"),AM_K,0,0,AKS_ALGSERVICE)
DEFEVENT(SPC_ALG_LSTART,_T("American Laser Games/Picmatic Left Start"),AM_K,0,0,AKS_ALGLSTART)
DEFEVENT(SPC_ALG_RSTART,_T("American Laser Games/Picmatic Right Start"),AM_K,0,0,AKS_ALGRSTART)
DEFEVENT(SPC_ALG_LCOIN,_T("American Laser Games Left Coin/Picmatic Coin"),AM_K,0,0,AKS_ALGLCOIN)
DEFEVENT(SPC_ALG_RCOIN,_T("American Laser Games Right Coin/Picmatic Coin"),AM_K,0,0,AKS_ALGRCOIN)
DEFEVENT(SPC_ALG_LTRIGGER,_T("American Laser Games/Picmatic Left Trigger"),AM_K,0,0,AKS_ALGLTRIGGER)
DEFEVENT(SPC_ALG_RTRIGGER,_T("American Laser Games/Picmatic Right Trigger"),AM_K,0,0,AKS_ALGRTRIGGER)
DEFEVENT(SPC_ALG_LHOLSTER,_T("American Laser Games Left Holster"),AM_K,0,0,AKS_ALGLHOLSTER)
DEFEVENT(SPC_ALG_RHOLSTER,_T("American Laser Games Right Holster"),AM_K,0,0,AKS_ALGRHOLSTER)

DEFEVENT(SPC_CUBO_TOUCH,_T("Cubo CD32 Touchscreen touch"),AM_K,0,0,AKS_CUBOTOUCH)
DEFEVENT(SPC_CUBO_TEST,_T("Cubo CD32 Test"),AM_K,0,0,AKS_CUBOTEST)
DEFEVENT(SPC_CUBO_COIN1,_T("Cubo CD32 coin player 1"),AM_K,0,0,AKS_CUBOCOIN1)
DEFEVENT(SPC_CUBO_COIN2,_T("Cubo CD32 coin player 2"),AM_K,0,0,AKS_CUBOCOIN2)
DEFEVENT(SPC_CUBO_COIN3,_T("Cubo CD32 coin player 3"),AM_K,0,0,AKS_CUBOCOIN3)
DEFEVENT(SPC_CUBO_COIN4,_T("Cubo CD32 coin player 4"),AM_K,0,0,AKS_CUBOCOIN4)

DEFEVENT(SPC_CDTV_FRONT_PANEL_STOP,_T("CDTV Front Panel Stop"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_STOP)
DEFEVENT(SPC_CDTV_FRONT_PANEL_PLAYPAUSE,_T("CDTV Front Panel Play/Pause"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_PLAYPAUSE)
DEFEVENT(SPC_CDTV_FRONT_PANEL_PREV,_T("CDTV Front Panel Previous"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_PREV)
DEFEVENT(SPC_CDTV_FRONT_PANEL_NEXT,_T("CDTV Front Panel Next"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_NEXT)
DEFEVENT(SPC_CDTV_FRONT_PANEL_REW,_T("CDTV Front Panel Rewind"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_REW)
DEFEVENT(SPC_CDTV_FRONT_PANEL_FF,_T("CDTV Front Panel Fast Forward"),AM_K,0,0,AKS_CDTV_FRONT_PANEL_FF)

DEFEVENT(SPC_VIDEOGRAB_RESTART,_T("VideoGrab Restart"),AM_K,0,0,AKS_VIDEOGRAB_RESTART)
DEFEVENT(SPC_VIDEOGRAB_PAUSE,_T("VideoGrab Pause"),AM_K,0,0,AKS_VIDEOGRAB_PAUSE)
DEFEVENT(SPC_VIDEOGRAB_PREV,_T("VideoGrab Previous Frame"),AM_K,0,0,AKS_VIDEOGRAB_PREV)
DEFEVENT(SPC_VIDEOGRAB_NEXT,_T("VideoGrab Next Frame"),AM_K,0,0,AKS_VIDEOGRAB_NEXT)

DEFEVENT(SPC_OSK,_T("On-screen keyboard"),AM_K,0,0,AKS_OSK)

#ifdef AMIBERRY

DEFEVENT(SPC_MOUSEMAP_PORT0_LEFT,_T("Mouse Toggle P0 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_LEFT)
DEFEVENT(SPC_MOUSEMAP_PORT0_RIGHT,_T("Mouse Toggle P0 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT0_RIGHT)
DEFEVENT(SPC_MOUSEMAP_PORT1_LEFT,_T("Mouse Toggle P1 (First Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_LEFT)
DEFEVENT(SPC_MOUSEMAP_PORT1_RIGHT,_T("Mouse Toggle P1 (Second Axis)"),AM_K,0,0,AKS_MOUSEMAP_PORT1_RIGHT)

DEFEVENT(SPC_MOUSE_SPEED_UP,_T("Mouse Speed Up"),AM_K,0,0,AKS_MOUSE_SPEED_UP)
DEFEVENT(SPC_MOUSE_SPEED_DOWN,_T("Mouse Speed Down"),AM_K,0,0,AKS_MOUSE_SPEED_DOWN)

DEFEVENT(AUTOFIRE_BEGIN, _T(""), AM_K, 0, 0, 0)
DEFEVENT(JOY1_AUTOFIRE_BUTTON,_T("Joy1 Autofire/Mouse1 Left Button"),AM_K,4,1,JOYBUTTON_1)
DEFEVENT(JOY2_AUTOFIRE_BUTTON,_T("Joy2 Autofire/Mouse2 Left Button"),AM_K,4,2,JOYBUTTON_1)
DEFEVENT(PAR_JOY1_AUTOFIRE_BUTTON,_T("Parallel Joy1 Autofire Button"),AM_K,4,3,JOYBUTTON_1)
DEFEVENT(PAR_JOY2_AUTOFIRE_BUTTON,_T("Parallel Joy2 Autofire Button"),AM_K,4,4,JOYBUTTON_1)
DEFEVENT(AUTOFIRE_END, _T(""), AM_K, 0, 0, 0)

DEFEVENT(SPC_SHUTDOWN, _T("Shutdown System"),AM_K,0,0,AKS_SHUTDOWN)

DEFEVENT(SPC_TOGGLE_JIT, _T("Toggle JIT"),AM_K,0,0,AKS_TOGGLE_JIT)
DEFEVENT(SPC_TOGGLE_JIT_FPU, _T("Toggle JIT FPU"),AM_K,0,0,AKS_TOGGLE_JIT_FPU)

DEFEVENT(SPC_AUTO_CROP_IMAGE, _T("Auto Crop"),AM_K,0,0,AKS_AUTO_CROP_IMAGE)

DEFEVENT(SPC_DISKSWAPPER_NEXT_INSERT0,_T("Insert next Disk Swapper slot in DF0:"),AM_K,0,0,AKS_DISKSWAPPER_NEXT_INSERT0)
DEFEVENT(SPC_DISKSWAPPER_PREVIOUS_INSERT0,_T("Insert previous Disk Swapper slot in DF0:"),AM_K,0,0,AKS_DISKSWAPPER_PREVIOUS_INSERT0)


#endif

DEFEVENT(SPC_LAST, _T(""), AM_DUMMY, 0,0,0)
