1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

input overhaul

Now event based! Should result in no skipped inputs.
This commit is contained in:
Étienne Fildadut 2022-09-16 20:04:53 +09:00
parent 77ece0b9a6
commit 21679dde5c
7 changed files with 599 additions and 1139 deletions

16
input/default.lua Normal file
View file

@ -0,0 +1,16 @@
return {
move = {
horizontal = {
"child.positive - child.negative",
positive = { "scancode.right", "scancode.d", "axis.leftx.p", "button.dpright" },
negative = { "scancode.left", "scancode.a", "axis.leftx.n", "button.dpleft" },
},
vertical = {
"child.positive - child.negative",
positive = { "scancode.down", "scancode.s", "axis.lefty.p", "button.dpdown" },
negative = { "scancode.up", "scancode.w", "axis.lefty.n", "button.dpup" },
},
},
confirm = { "scancode['return']", "scancode.space", "scancode.e", "button.a" },
cancel = { "scancode.escape", "scancode.backspace", "button.b" },
}