16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 01:19:19 +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

14
headtrack.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
class headtrack
{
int joy_id = -1;
void find_joy();
float get_axis(const float *data, int count, int axis, float mul);
public:
headtrack();
void update();
};