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:
parent
77ece0b9a6
commit
21679dde5c
7 changed files with 599 additions and 1139 deletions
16
input/default.lua
Normal file
16
input/default.lua
Normal 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" },
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue