summaryrefslogtreecommitdiff
path: root/stdlib/button.lua
blob: 02b83583996f351d8fb7718ac3acb71f2dd051e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local button = {}

button.PAD_UP    = { keyboard = 87, xbox = 1,  playstation = 0 }  -- Key: W
button.PAD_DOWN  = { keyboard = 83, xbox = 3,  playstation = 0 }  -- Key: S
button.PAD_LEFT  = { keyboard = 65, xbox = 4,  playstation = 0 }  -- Key: A
button.PAD_RIGHT = { keyboard = 68, xbox = 2,  playstation = 0 }  -- Key: D

button.A         = { keyboard = 76, xbox = 7,  playstation = 0 }  -- Key: L
button.B         = { keyboard = 80, xbox = 6,  playstation = 0 }  -- Key: P
button.X         = { keyboard = 75, xbox = 8,  playstation = 0 }  -- Key: K
button.Y         = { keyboard = 79, xbox = 5,  playstation = 0 }  -- Key: O

button.SELECT    = { keyboard = 81, xbox = 13, playstation = 0 }  -- Key: Q
button.START     = { keyboard = 69, xbox = 15, playstation = 0 }  -- Key: E

return button