all repos — mgba @ 9b1769d67dae4a1f02f146265411c68171e031d3

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2014 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef GBA_SENSORS_H
 7#define GBA_SENSORS_H
 8
 9#include "util/common.h"
10
11struct GBARotationSource {
12	void (*sample)(struct GBARotationSource*);
13
14	int32_t (*readTiltX)(struct GBARotationSource*);
15	int32_t (*readTiltY)(struct GBARotationSource*);
16
17	int32_t (*readGyroZ)(struct GBARotationSource*);
18};
19
20#endif