Skip to content

Key codes and Global Hotkey config file locations

christianhaitian edited this page Oct 27, 2020 · 6 revisions

Key Codes

Useful for reassigning use of buttons for OS based events (such as Global Hotkeys)

  • DPAD Up = 544
  • DPAD Down = 545
  • DPAD Left = 546
  • DPAD Right = 547
  • A = 305
  • B = 304
  • X = 307
  • Y = 308
  • Select = 704 = OGA F1
  • Start = 709 = OGA F6
  • L1 = 310
  • L2 = 706 = OGA F3
  • R1 = 311
  • R2 = 707 = OGA F4

Global Hotkey config file locations:

  • TheRA = /usr/local/bin/oga_events.py (Modify f3 = 706 to your preferred key code as listed above)
  • EmuElec = /storage/.config/emuelec/scripts/oga_events.py (Modify f5 = 708 to your preferred key code as listed above)

Useful for Mupen64plus key reassignment in TheRA-NTFS (/opt/mupen64plus/InputAutoCfg.ini) in the odroidgo2_joypad section and modifying joystick events (ex. Quit emulator and save state hotkeys) in /home/odroid/.config/mupen64plus.cfg

  • DPAD LEFT = 8
  • DPAD RIGHT = 9
  • DPAD UP = 6
  • DPAD DOWN = 7
  • START = 15
  • SELECT = 10
  • A = 1
  • B = 0
  • X = 2
  • Y = 3
  • L1 = 4
  • L2 = 12
  • R1 = 5
  • R2 = 13