mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
input: Add multidimensional inputs to replace pointer special case, improve documentation
This commit is contained in:
parent
7ad5c2d641
commit
8b994608a2
18 changed files with 1490 additions and 264 deletions
|
|
@ -1,15 +1,11 @@
|
|||
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" },
|
||||
},
|
||||
"clamped(child.right - child.left, child.down - child.up)",
|
||||
dimension = 2,
|
||||
right = { "scancode.right", "scancode.d", "axis.leftx.p", "button.dpright" },
|
||||
left = { "scancode.left", "scancode.a", "axis.leftx.n", "button.dpleft" },
|
||||
down = { "scancode.down", "scancode.s", "axis.lefty.p", "button.dpdown" },
|
||||
up = { "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