add haptic feedback on scroll

This commit is contained in:
Crispy 2023-05-03 20:56:58 +02:00
parent 47ebf9d64c
commit 6f44ea6b5a
5 changed files with 24 additions and 1 deletions

View file

@ -55,6 +55,11 @@
"name": "/actions/cursor/in/scroll",
"requirement": "suggested",
"type": "vector2"
},
{
"name": "/actions/cursor/out/scroll_haptic",
"requirement": "suggested",
"type": "vibration"
}
],
"action_sets": [
@ -83,7 +88,8 @@
"/actions/cursor/in/mouse_left": "left mouse button",
"/actions/cursor/in/mouse_right": "right mouse button",
"/actions/cursor/in/mouse_middle": "middle mouse button",
"/actions/cursor/in/scroll": "scroll"
"/actions/cursor/in/scroll": "scroll",
"/actions/cursor/out/scroll_haptic": "scrolling haptic feedback"
}
]
}

View file

@ -141,6 +141,16 @@
"app_key" : "system.generated.sinpin_vr",
"bindings" : {
"/actions/cursor" : {
"haptics" : [
{
"output" : "/actions/cursor/out/scroll_haptic",
"path" : "/user/hand/left/output/haptic"
},
{
"output" : "/actions/cursor/out/scroll_haptic",
"path" : "/user/hand/right/output/haptic"
}
],
"sources" : [
{
"inputs" : {