16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 14:39:18 +02:00

openvr WIP

This commit is contained in:
milek7
2020-09-29 22:27:13 +02:00
parent ffa01f8e6d
commit 936effa9db
21 changed files with 693 additions and 65 deletions

View File

@@ -35,7 +35,7 @@ void headtrack::update()
{
if (joy_id == -1 || !glfwJoystickPresent(joy_id)) {
Global.viewport_move = glm::vec3();
Global.viewport_rotate = glm::vec3();
Global.viewport_rotate = glm::mat3();
find_joy();
return;
}
@@ -59,5 +59,5 @@ void headtrack::update()
rotate.z = get_axis(axes, count, rot_axes.z, rot_mul.z);
Global.viewport_move = move;
Global.viewport_rotate = rotate;
Global.viewport_rotate = glm::orientate3(rotate);
}