all repos — mgba @ 6560db2ef58e1a192a2356fd8ae1de65379b838c

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