all repos — mgba @ 2db6d27496dcd66af0ab45a51a6bf94a4862b59d

mGBA Game Boy Advance Emulator

src/gba/gba-sensors.h (view raw)

 1#ifndef GBA_SENSORS_H
 2#define GBA_SENSORS_H
 3
 4#include <stdint.h>
 5
 6struct GBARotationSource {
 7	void (*sample)(struct GBARotationSource*);
 8
 9	int32_t (*readTiltX)(struct GBARotationSource*);
10	int32_t (*readTiltY)(struct GBARotationSource*);
11
12	int32_t (*readGyroZ)(struct GBARotationSource*);
13};
14
15#endif