Skip to content
Snippets Groups Projects
Commit bbcb58e9 authored by johnshaughnessy's avatar johnshaughnessy
Browse files

Fix touchscreen user bindings

parent a0a7d70a
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ export const touchscreenUserBindings = addSetsToBindings({
xform: xforms.scale(0.25)
},
{
src: {},
dest: { value: zero },
xform: xforms.always(0)
},
......@@ -81,16 +82,12 @@ export const touchscreenUserBindings = addSetsToBindings({
{
src: { value: paths.device.touchscreen.isTouchingGrabbable },
dest: { value: paths.actions.cursor.grab },
xform: xforms.copy,
root: "touchscreen.isTouchingGrabbable",
priority: 100
xform: xforms.copy
},
{
src: { value: paths.device.hud.penButton },
dest: { value: paths.actions.spawnPen },
xform: xforms.rising,
root: "hud.penButton",
priority: 100
xform: xforms.rising
}
],
[sets.cursorHoldingInteractable]: [
......@@ -98,36 +95,29 @@ export const touchscreenUserBindings = addSetsToBindings({
src: { value: paths.device.touchscreen.isTouchingGrabbable },
dest: { value: paths.actions.cursor.drop },
xform: xforms.falling,
root: "touchscreen.cursorDrop",
priority: 100
priority: 1
}
],
[sets.cursorHoveringOnPen]: [],
[sets.cursorHoldingPen]: [
{
src: { value: paths.device.touchscreen.isTouchingGrabbable },
dest: { value: paths.noop },
xform: xforms.noop,
root: "touchscreen.cursorDrop",
priority: 200
},
{
src: { value: paths.device.touchscreen.isTouchingGrabbable },
dest: { value: paths.actions.cursor.startDrawing },
xform: xforms.risingWithFrameDelay(5)
xform: xforms.risingWithFrameDelay(5),
priority: 2
},
{
src: { value: paths.device.touchscreen.isTouchingGrabbable },
dest: { value: paths.actions.cursor.stopDrawing },
xform: xforms.falling
xform: xforms.falling,
priority: 2
},
{
src: { value: paths.device.hud.penButton },
dest: { value: paths.actions.cursor.drop },
xform: xforms.rising,
root: "hud.penButton",
priority: 200
priority: 1
}
]
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment