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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user