v.2024-11-05
Parent Page

Emulation Station Controls

Summary

  1. Red A Fire Button is enter or launch game
  2. p2 Start White Button is back
  3. There is no low lever joystick driver, only simulated SDL Keyboard Codes.
  4. The es_input.cfg files seems to use SDL Keyboard Codes to map to keyboard, NOT event test codes
  5. 1073741906 0x40000052 SDLK_UP
  6. I think the adafruit retrogame driver just converts evtest low level codes to SDL Keyboard Codes.
  7. Both front and back register analog #'s in evtest.

Image

SDL Key Code Mapping

SDLKeycodeLookup

evtestSDL CodesEmulation Station
Event code 1 (KEY_ESC) Back Panel Button 2 27 0x1B ('\033') SDLK_ESCAPE Not Mapped in ES
Event code 2 (KEY_1) p1Start 49 0x31 ('1') SDLK_1 input name="start" type="key" id="49" value="1"
Event code 3 (KEY_2) p2Start 50 0x32 ('2') SDLK_2 input name="b" type="key" id="50" value="1"
Event code 6 (KEY_5) Coin Door Left 53 0x35 ('5') SDLK_5 input name="select" type="key" id="53" value="1"
Event code 7 (KEY_6) Coin Door Right 54 0x36 ('6') SDLK_6 input name="x" type="key" id="54" value="1"
Event code 28 (KEY_ENTER) Back Panel Button 1 13 0x0D ('\r') SDLK_RETURN input name="y" type="key" id="13" value="1"
Event code 29 (KEY_LEFTCTRL) Red Button 1073742048 0x400000E0 SDLK_LCTRL input name="a" type="key" id="1073742048" value="1"

es_input.cfg

es_temporaryinput.cfg