all repos — mgba @ 51ad9d37e1cbba22d81d9bcddfe9ad8d7c6de1c2

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