1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-30 16:30:02 +02:00

OpenVR Action Support (Platform Agnostic Controller Support) and HMD Based Rotation (#154)

* Initial OpenVr Testing

* Enabled headtracked movement for Lara, working on fusion of manual movement and headtracked

* Added reconfigurable action mapping support via SteamVR Input Bindings

* More intuitive controlscheme for WMR, should work on all headsets and controllers compatible with OpenVR/SteamVR

* Removed debugging output and fixed formatting, did I remove all the right files?

*  Did I remove the files correctly?

* Removed unwanted files

* Delete .gitignore

* Delete OpenLara.exp

* Delete OpenLara.lib

* Delete .suo~dcb08bfe01cc839fce41c7dcf9ff7088af2fedb7

* reverted/fixed .gitignore

* Update input.h

* Update lara.h

* Update lara.h

* Update level.h

* Update OpenLara.vcxproj

* Update OpenLara.vcxproj.user

* Update main.cpp

* Update camera.h

* Update lara.h

* reverting vcxproj* and .gitignore

* Update main.cpp

* Update main.cpp

* Update main.cpp
This commit is contained in:
mrhatkat
2019-01-31 01:34:56 -05:00
committed by Timur Gagiev
parent c52e7626d5
commit f5213e31f6
10 changed files with 1381 additions and 128 deletions

View File

@@ -0,0 +1,75 @@
{
"actions" : [
{
"name" : "/actions/demo/in/Left",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Right",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Up",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Down",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Jump",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Walk",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Action",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Weapon",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Roll",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Inventory",
"type" : "boolean"
},
{
"name" : "/actions/demo/in/Start",
"type" : "boolean"
}
],
"default_bindings" : [
{
"binding_url" : "system_generated_openlara_exe_binding_holographic_controller.json",
"controller_type" : "holographic_controller"
}
],
"localization" : [
{
"/actions/demo/in/Action" : "Action",
"/actions/demo/in/AnalogInput" : "Analog Input",
"/actions/demo/in/Down" : "MoveDown",
"/actions/demo/in/Hand_Left" : "Left Hand Pose",
"/actions/demo/in/Hand_Right" : "Right Hand Pose",
"/actions/demo/in/Inventory" : "Inventory",
"/actions/demo/in/Jump" : "Jump",
"/actions/demo/in/Left" : "MoveLeft",
"/actions/demo/in/Right" : "MoveRight",
"/actions/demo/in/Roll" : "Roll",
"/actions/demo/in/Start" : "Start",
"/actions/demo/in/Up" : "MoveUp",
"/actions/demo/in/Walk" : "Walk",
"/actions/demo/in/Weapon" : "Weapon",
"/actions/demo/out/haptic_left" : "Left Haptic Feedback",
"/actions/demo/out/haptic_right" : "Right Haptic Feedback",
"language_tag" : "en_US"
}
]
}

BIN
bin/openvr_api.dll Normal file

Binary file not shown.

View File

@@ -0,0 +1,120 @@
{
"alias_info" : {},
"app_key" : "system.generated.openlara.exe",
"bindings" : {
"/actions/demo" : {
"sources" : [
{
"inputs" : {
"east" : {
"output" : "/actions/demo/in/right"
},
"north" : {
"output" : "/actions/demo/in/up"
},
"south" : {
"output" : "/actions/demo/in/down"
},
"west" : {
"output" : "/actions/demo/in/left"
}
},
"mode" : "dpad",
"parameters" : {
"sub_mode" : "click"
},
"path" : "/user/hand/left/input/trackpad"
},
{
"inputs" : {
"east" : {
"output" : "/actions/demo/in/right"
},
"north" : {
"output" : "/actions/demo/in/up"
},
"south" : {
"output" : "/actions/demo/in/down"
},
"west" : {
"output" : "/actions/demo/in/left"
}
},
"mode" : "dpad",
"parameters" : {
"sub_mode" : "touch"
},
"path" : "/user/hand/left/input/joystick"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/jump"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/action"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trigger"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/walk"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/grip"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/weapon"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/trackpad"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/start"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/application_menu"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/inventory"
}
},
"mode" : "button",
"path" : "/user/hand/left/input/application_menu"
},
{
"inputs" : {
"click" : {
"output" : "/actions/demo/in/roll"
}
},
"mode" : "button",
"path" : "/user/hand/right/input/grip"
}
]
}
},
"controller_type" : "holographic_controller",
"description" : "",
"name" : "OpenLaraTestWMRBinding",
"options" : {},
"simulated_actions" : []
}