|
diff --git a/stdlib/button.lua b/stdlib/button.lua
|
| 1 |
local button = {} |
1 |
local button = {} |
| 2 |
|
2 |
|
| 3 |
button.PAD_UP = { keyboard = 87, xbox = 1, playstation = 1 } -- Key: W |
3 |
-- button.PAD_UP = { keyboard = 87, xbox = 1, playstation = 1 } -- Key: W |
| 4 |
button.PAD_DOWN = { keyboard = 83, xbox = 3, playstation = 2 } -- Key: S |
4 |
-- button.PAD_DOWN = { keyboard = 83, xbox = 3, playstation = 2 } -- Key: S |
| 5 |
button.PAD_LEFT = { keyboard = 65, xbox = 4, playstation = 3 } -- Key: A |
5 |
-- button.PAD_LEFT = { keyboard = 65, xbox = 4, playstation = 3 } -- Key: A |
| 6 |
button.PAD_RIGHT = { keyboard = 68, xbox = 2, playstation = 4 } -- Key: D |
6 |
-- button.PAD_RIGHT = { keyboard = 68, xbox = 2, playstation = 4 } -- Key: D |
|
|
7 |
|
|
|
8 |
-- button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L |
|
|
9 |
-- button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P |
|
|
10 |
-- button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K |
|
|
11 |
-- button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O |
|
|
12 |
|
|
|
13 |
-- button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q |
|
|
14 |
-- button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E |
|
|
15 |
|
|
|
16 |
button.PAD_UP = { keyboard = 265, xbox = 1, playstation = 1 } -- Key: Up arrow |
|
|
17 |
button.PAD_DOWN = { keyboard = 264, xbox = 3, playstation = 2 } -- Key: Down arrow |
|
|
18 |
button.PAD_LEFT = { keyboard = 263, xbox = 4, playstation = 3 } -- Key: Left arrow |
|
|
19 |
button.PAD_RIGHT = { keyboard = 262, xbox = 2, playstation = 4 } -- Key: Right arrow |
| 7 |
|
20 |
|
| 8 |
button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L |
21 |
button.A = { keyboard = 65, xbox = 7, playstation = 7 } -- Key: A |
| 9 |
button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P |
22 |
button.B = { keyboard = 83, xbox = 6, playstation = 6 } -- Key: S |
| 10 |
button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K |
23 |
button.X = { keyboard = 81, xbox = 8, playstation = 8 } -- Key: Q |
| 11 |
button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O |
24 |
button.Y = { keyboard = 87, xbox = 5, playstation = 5 } -- Key: W |
| 12 |
|
25 |
|
| 13 |
button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q |
26 |
button.SELECT = { keyboard = 68, xbox = 13, playstation = 13 } -- Key: D |
| 14 |
button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E |
27 |
button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E |
| 15 |
|
28 |
|
| 16 |
return button |
29 |
return button |