diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-11 19:58:35 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-11 19:58:35 +0200 |
| commit | e2e7db6a3e4c569590a36b3eab3815fc5980c6f9 (patch) | |
| tree | 3b2c5b6098934545f5b0c6fc605f2657f1bd6430 /stdlib/button.lua | |
| parent | eb5dee514ba02f866d1eb3378df9ccc5830e7747 (diff) | |
| download | bidi-e2e7db6a3e4c569590a36b3eab3815fc5980c6f9.tar.gz | |
Redefinition of buttons
Diffstat (limited to 'stdlib/button.lua')
| -rw-r--r-- | stdlib/button.lua | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/stdlib/button.lua b/stdlib/button.lua index f629dc9..7ea8e38 100644 --- a/stdlib/button.lua +++ b/stdlib/button.lua | |||
| @@ -1,16 +1,29 @@ | |||
| 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 | 7 | ||
| 8 | button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L | 8 | -- button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L |
| 9 | button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P | 9 | -- button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P |
| 10 | button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K | 10 | -- button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K |
| 11 | button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O | 11 | -- button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O |
| 12 | 12 | ||
| 13 | button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q | 13 | -- button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q |
| 14 | button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E | 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 | ||
| 20 | |||
| 21 | button.A = { keyboard = 65, xbox = 7, playstation = 7 } -- Key: A | ||
| 22 | button.B = { keyboard = 83, xbox = 6, playstation = 6 } -- Key: S | ||
| 23 | button.X = { keyboard = 81, xbox = 8, playstation = 8 } -- Key: Q | ||
| 24 | button.Y = { keyboard = 87, xbox = 5, playstation = 5 } -- Key: W | ||
| 25 | |||
| 26 | button.SELECT = { keyboard = 68, xbox = 13, playstation = 13 } -- Key: D | ||
| 27 | button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E | ||
| 15 | 28 | ||
| 16 | return button | 29 | return button |
