-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
718 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
build/* | ||
dist/* | ||
release/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CMakeList.txt : CMake project for HipLocomotion, include source and define | ||
# project specific logic here. | ||
# | ||
cmake_minimum_required (VERSION 3.8) | ||
|
||
|
||
# Add source to this project's executable. | ||
add_executable (hiplocomotion "hiplocomotion.cpp" "hiplocomotion.h") | ||
|
||
target_include_directories("hiplocomotion" PUBLIC "${OPENVR_INCLUDE_DIR}") | ||
target_link_libraries("hiplocomotion" PUBLIC "${OPENVR_LIB}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"default_bindings": [ | ||
{ | ||
"controller_type": "vive_controller", | ||
"binding_url": "hiplocomotion_bindings_vive_controller.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_waist", | ||
"binding_url": "hiplocomotion_bindings_vive_tracker.json" | ||
}, | ||
{ | ||
"controller_type": "generic", | ||
"binding_url": "hiplocomotion_bindings_generic.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_left_foot", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_right_foot", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_left_shoulder", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_right_shoulder", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_left_elbow", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_right_elbow", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_left_knee", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_right_knee", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_chest", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_camera", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
}, | ||
{ | ||
"controller_type": "vive_tracker_keyboard", | ||
"binding_url": "hiplocomotion_bindings_empty.json" | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"name": "/actions/demo/in/AnalogInput", | ||
"type": "vector2" | ||
}, | ||
{ | ||
"name": "/actions/demo/in/Tracker", | ||
"type": "pose" | ||
} | ||
], | ||
"action_sets": [ | ||
{ | ||
"name": "/actions/demo", | ||
"usage": "leftright" | ||
} | ||
], | ||
"localization" : [ | ||
{ | ||
"language_tag": "en_US", | ||
"/actions/demo/in/AnalogInput" : "Analog Input", | ||
"/actions/demo/in/Tracker" : "Tracker Pose" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"controller_type" : "vive_tracker", | ||
"description" : "Empty bindings for non hip trackers", | ||
"name" : "Empty binding" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"bindings" : { | ||
"/actions/demo" : { | ||
"sources" : [ | ||
{ | ||
"inputs" : { | ||
"position" : { | ||
"output" : "/actions/demo/in/analoginput" | ||
} | ||
}, | ||
"mode" : "joystick", | ||
"path" : "/user/hand/left/input/joystick" | ||
} | ||
] | ||
} | ||
}, | ||
"controller_type" : "generic", | ||
"description" : "Bindings for the hip locomotion for a generic controller", | ||
"name" : "Hip locomotion bindings for a generic controller" | ||
} |
20 changes: 20 additions & 0 deletions
20
lean-to-move/bindings/hiplocomotion_bindings_knuckles.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"bindings" : { | ||
"/actions/demo" : { | ||
"sources" : [ | ||
{ | ||
"inputs" : { | ||
"position" : { | ||
"output" : "/actions/demo/in/analoginput" | ||
} | ||
}, | ||
"mode" : "joystick", | ||
"path" : "/user/hand/left/input/thumbstick" | ||
} | ||
] | ||
} | ||
}, | ||
"controller_type" : "knuckles", | ||
"description" : "Bindings for the hip locomotion for a knuckles controller", | ||
"name" : "Hip locomotion bindings for a knuckles controller" | ||
} |
20 changes: 20 additions & 0 deletions
20
lean-to-move/bindings/hiplocomotion_bindings_vive_controller.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"bindings" : { | ||
"/actions/demo" : { | ||
"sources" : [ | ||
{ | ||
"inputs" : { | ||
"position" : { | ||
"output" : "/actions/demo/in/analoginput" | ||
} | ||
}, | ||
"mode" : "trackpad", | ||
"path" : "/user/hand/right/input/trackpad" | ||
} | ||
] | ||
} | ||
}, | ||
"controller_type" : "vive_controller", | ||
"description" : "Bindings for hip locomotion for the Vive controller", | ||
"name" : "Hip locomotion bindings for Vive Controller" | ||
} |
15 changes: 15 additions & 0 deletions
15
lean-to-move/bindings/hiplocomotion_bindings_vive_tracker.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"bindings" : { | ||
"/actions/demo" : { | ||
"poses" : [ | ||
{ | ||
"output" : "/actions/demo/in/Tracker", | ||
"path" : "/user/waist/pose/raw" | ||
} | ||
] | ||
} | ||
}, | ||
"controller_type" : "vive_tracker", | ||
"description" : "Bindings for the hip locomotion for a tracker", | ||
"name" : "Hip locomotion bindings for a tracker" | ||
} |
Oops, something went wrong.