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

headtracking from joystick input

This commit is contained in:
milek7
2020-02-11 00:16:57 +01:00
parent b651752057
commit e8537a16bb
8 changed files with 123 additions and 2 deletions

View File

@@ -169,6 +169,9 @@ eu07_application::run() {
Timer::subsystem.mainloop_total.start();
glfwPollEvents();
if (m_headtrack)
m_headtrack->update();
begin_ui_frame();
// -------------------------------------------------------------------
@@ -772,6 +775,9 @@ eu07_application::init_gfx() {
if (!GfxRenderer.AddViewport(conf))
return -1;
if (!Global.headtrack_conf.joy.empty())
m_headtrack.emplace();
return 0;
}