MAME, or more properly, the core uses this codes to ask for a control to command a game.
Joypad
Joypad is a MAME abstraction that represents elements in a generic gamepad controller.
- JOYPAD_A
- JOYPAD_B
- JOYPAD_X
- JOYPAD_Y
- JOYPAD_START
- JOYPAD_SELECT
- JOYPAD_UP
- JOYPAD_DOWN
- JOYPAD_LEFT
- JOYPAD_RIGHT
- JOYPAD_LEFT_RUMBLE
- JOYPAD_RIGHT_RUMBLE
- JOYPAD_L
- JOYPAD_R
- JOYPAD_L2
- JOYPAD_R2
- JOYPAD_L3
- JOYPAD_R3
- EXIT
- INSERT
- MODIFIER
Mouse
Some controllers maps parts to a mouse, that means the PC or Headset detect them as a mouse. This is usual in Gamepads with a Joystick in the right part.
- MOUSE_X
- MOUSE_Y
- MOUSE_LEFT
- MOUSE_RIGHT
- MOUSE_MIDDLE
- MOUSE_WHEELUP
- MOUSE_WHEELDOWN
- MOUSE_HORIZ_WHEELUP
- MOUSE_HORIZ_WHEELDOWN
- MOUSE_BUTTON_4
- MOUSE_BUTTON_5
light guns
- LIGHTGUN_AUX_A
- LIGHTGUN_AUX_B
- LIGHTGUN_AUX_C
- LIGHTGUN_DPAD_UP
- LIGHTGUN_DPAD_DOWN
- LIGHTGUN_DPAD_LEFT
- LIGHTGUN_DPAD_RIGHT
- LIGHTGUN_START
- LIGHTGUN_SELECT
- LIGHTGUN_TRIGGER
- LIGHTGUN_RELOAD