Skip to content

Commit

Permalink
add mouse interactions using your index fingertip
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivero committed May 19, 2020
1 parent 112dd6f commit dc278de
Show file tree
Hide file tree
Showing 11 changed files with 1,118 additions and 747 deletions.
7 changes: 6 additions & 1 deletion KerbalVR_Mod/KerbalVR/Assets/Input/actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"name": "/actions/flight/in/ThrottleStick",
"type": "vector2"
},
{
"name": "/actions/flight/in/InteractClick",
"type": "boolean"
},
{
"name": "/actions/EVA/in/Teleport",
"type": "boolean"
Expand Down Expand Up @@ -149,7 +153,8 @@
"/actions/flight/in/FlightStick": "Flight Stick",
"/actions/flight/in/YawStick": "Yaw Control",
"/actions/flight/in/ThrottleStick": "Throttle Control",
"/actions/EVA/in/Teleport": "Teleport"
"/actions/EVA/in/Teleport": "Teleport",
"/actions/flight/in/InteractClick": "Interaction Click"
}
]
}
76 changes: 30 additions & 46 deletions KerbalVR_Mod/KerbalVR/Assets/Input/bindings_knuckles.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@
"mode" : "force_sensor",
"path" : "/user/hand/right/input/grip"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
Expand All @@ -88,43 +79,6 @@
"mode" : "button",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"north" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "dpad",
"parameters" : {
"deadzone_pct" : "25",
"overlap_pct" : "30",
"sub_mode" : "touch"
},
"path" : "/user/hand/left/input/thumbstick"
},
{
"inputs" : {
"north" : {
"output" : "/actions/default/in/teleport"
}
},
"mode" : "dpad",
"parameters" : {
"deadzone_pct" : "25",
"overlap_pct" : "30",
"sub_mode" : "touch"
},
"path" : "/user/hand/right/input/thumbstick"
},
{
"inputs" : {
"east" : {
Expand Down Expand Up @@ -188,6 +142,10 @@
]
},
"/actions/editor" : {
"chords" : [],
"haptics" : [],
"poses" : [],
"skeleton" : [],
"sources" : [
{
"inputs" : {
Expand All @@ -210,6 +168,10 @@
]
},
"/actions/eva" : {
"chords" : [],
"haptics" : [],
"poses" : [],
"skeleton" : [],
"sources" : [
{
"inputs" : {
Expand All @@ -232,6 +194,10 @@
]
},
"/actions/flight" : {
"chords" : [],
"haptics" : [],
"poses" : [],
"skeleton" : [],
"sources" : [
{
"inputs" : {
Expand Down Expand Up @@ -271,6 +237,24 @@
"smooth_scroll_trackpad_aspect_ratio" : "0.6"
},
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/flight/in/interactclick"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/b"
},
{
"inputs" : {
"click" : {
"output" : "/actions/flight/in/interactclick"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/b"
}
]
},
Expand Down
Loading

0 comments on commit dc278de

Please sign in to comment.