all repos — mgba @ e6ea94d2296eae963a48a18d009217a38d92bf9b

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 "util/common.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