all repos — mgba @ 8a6254cc73053ee75d60e99d01daa7c8c4e5d6a9

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 "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