Skip to content

Instantly share code, notes, and snippets.

@jonasgeiler
Last active October 5, 2018 21:04
Show Gist options
  • Save jonasgeiler/78347e3635f75f4f9ad7419c79a0d680 to your computer and use it in GitHub Desktop.
Save jonasgeiler/78347e3635f75f4f9ad7419c79a0d680 to your computer and use it in GitHub Desktop.
Gameshell Löve2D Keymap
-- GAMESHELL KEYMAP --
-- See here: https://github.com/clockworkpi/Keypad/blob/master/keymaps.png
keys = {}
-- A, B, X, Y
keys.Y = 'i'
keys.X = 'u'
keys.A = 'j'
keys.B = 'k'
-- D-Pad
keys.DPad_up = 'up'
keys.DPad_down = 'down'
keys.DPad_right = 'right'
keys.DPad_left = 'left'
-- Special Keys
keys.Start = 'return'
keys.Select = 'space'
keys.Volume_down = 'kp-'
keys.Volume_up = 'kp+'
-- Menu
keys.Menu = 'escape'
-- Lightkey
keys.LK1 = 'h'
keys.LK2 = 'y'
--keys.LK3 = keys.lk3 = '' <-- Not usable, is shift
keys.LK4 = 'o'
keys.LK5 = 'l'
keys.LK1_shift = 'home'
keys.LK2_shift = 'pageup'
--keys.LK3_shift = lk3_shift = '' <-- Still not usable...
keys.LK4_shift = 'pagedown'
keys.LK5_shift = 'end'
return keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment