aboutsummaryrefslogtreecommitdiff
path: root/stdlib/button.lua
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-08-11 19:58:35 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-08-11 19:58:35 +0200
commite2e7db6a3e4c569590a36b3eab3815fc5980c6f9 (patch)
tree3b2c5b6098934545f5b0c6fc605f2657f1bd6430 /stdlib/button.lua
parenteb5dee514ba02f866d1eb3378df9ccc5830e7747 (diff)
downloadbidi-e2e7db6a3e4c569590a36b3eab3815fc5980c6f9.tar.gz
Redefinition of buttons
Diffstat (limited to 'stdlib/button.lua')
-rw-r--r--stdlib/button.lua33
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 @@
1local button = {} 1local button = {}
2 2
3button.PAD_UP = { keyboard = 87, xbox = 1, playstation = 1 } -- Key: W 3-- button.PAD_UP = { keyboard = 87, xbox = 1, playstation = 1 } -- Key: W
4button.PAD_DOWN = { keyboard = 83, xbox = 3, playstation = 2 } -- Key: S 4-- button.PAD_DOWN = { keyboard = 83, xbox = 3, playstation = 2 } -- Key: S
5button.PAD_LEFT = { keyboard = 65, xbox = 4, playstation = 3 } -- Key: A 5-- button.PAD_LEFT = { keyboard = 65, xbox = 4, playstation = 3 } -- Key: A
6button.PAD_RIGHT = { keyboard = 68, xbox = 2, playstation = 4 } -- Key: D 6-- button.PAD_RIGHT = { keyboard = 68, xbox = 2, playstation = 4 } -- Key: D
7 7
8button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L 8-- button.A = { keyboard = 76, xbox = 7, playstation = 7 } -- Key: L
9button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P 9-- button.B = { keyboard = 80, xbox = 6, playstation = 6 } -- Key: P
10button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K 10-- button.X = { keyboard = 75, xbox = 8, playstation = 8 } -- Key: K
11button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O 11-- button.Y = { keyboard = 79, xbox = 5, playstation = 5 } -- Key: O
12 12
13button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q 13-- button.SELECT = { keyboard = 81, xbox = 13, playstation = 13 } -- Key: Q
14button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E 14-- button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E
15
16button.PAD_UP = { keyboard = 265, xbox = 1, playstation = 1 } -- Key: Up arrow
17button.PAD_DOWN = { keyboard = 264, xbox = 3, playstation = 2 } -- Key: Down arrow
18button.PAD_LEFT = { keyboard = 263, xbox = 4, playstation = 3 } -- Key: Left arrow
19button.PAD_RIGHT = { keyboard = 262, xbox = 2, playstation = 4 } -- Key: Right arrow
20
21button.A = { keyboard = 65, xbox = 7, playstation = 7 } -- Key: A
22button.B = { keyboard = 83, xbox = 6, playstation = 6 } -- Key: S
23button.X = { keyboard = 81, xbox = 8, playstation = 8 } -- Key: Q
24button.Y = { keyboard = 87, xbox = 5, playstation = 5 } -- Key: W
25
26button.SELECT = { keyboard = 68, xbox = 13, playstation = 13 } -- Key: D
27button.START = { keyboard = 69, xbox = 15, playstation = 15 } -- Key: E
15 28
16return button 29return button