Merge pull request #1688 from jamesu/dx11_openvr_pr

Basic OpenVR Support code
This commit is contained in:
Areloch 2016-09-14 00:24:20 -05:00 committed by GitHub
commit 7e4095d610
74 changed files with 5987 additions and 1384 deletions

View file

@ -752,3 +752,21 @@ vehicleMap.bind( gamepad, btn_b, brake );
vehicleMap.bind( gamepad, btn_x, movebackward );
// bind exiting the vehicle to a button
vehicleMap.bindCmd(gamepad, btn_y,"getout();","");
// ----------------------------------------------------------------------------
// Oculus Rift
// ----------------------------------------------------------------------------
function OVRSensorRotEuler(%pitch, %roll, %yaw)
{
//echo("Sensor euler: " @ %pitch SPC %roll SPC %yaw);
$mvRotZ0 = %yaw;
$mvRotX0 = %pitch;
$mvRotY0 = %roll;
}
$mvRotIsEuler0 = true;
$OculusVR::GenerateAngleAxisRotationEvents = false;
$OculusVR::GenerateEulerRotationEvents = true;
moveMap.bind( oculusvr, ovr_sensorrotang0, OVRSensorRotEuler );