Skip to content

Commit

Permalink
added lean to move files
Browse files Browse the repository at this point in the history
  • Loading branch information
ju1ce committed Sep 19, 2021
1 parent 4739c3b commit d8558b4
Show file tree
Hide file tree
Showing 12 changed files with 718 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lean-to-move/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/*
dist/*
release/*
11 changes: 11 additions & 0 deletions lean-to-move/CMakeLists.txt
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}")
83 changes: 83 additions & 0 deletions lean-to-move/bindings/hiplocomotion_actions.json
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"
}
]
}
5 changes: 5 additions & 0 deletions lean-to-move/bindings/hiplocomotion_bindings_empty.json
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"
}
20 changes: 20 additions & 0 deletions lean-to-move/bindings/hiplocomotion_bindings_generic.json
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 lean-to-move/bindings/hiplocomotion_bindings_knuckles.json
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 lean-to-move/bindings/hiplocomotion_bindings_vive_controller.json
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 lean-to-move/bindings/hiplocomotion_bindings_vive_tracker.json
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"
}
Loading

0 comments on commit d8558b4

Please sign in to comment.