include/mgba/internal/gba/input.h (view raw)
1/* Copyright (c) 2013-2016 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_INPUT_H
7#define GBA_INPUT_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/core/input.h>
14
15extern const struct mInputPlatformInfo GBAInputInfo;
16
17enum GBAKey {
18 GBA_KEY_A = 0,
19 GBA_KEY_B = 1,
20 GBA_KEY_SELECT = 2,
21 GBA_KEY_START = 3,
22 GBA_KEY_RIGHT = 4,
23 GBA_KEY_LEFT = 5,
24 GBA_KEY_UP = 6,
25 GBA_KEY_DOWN = 7,
26 GBA_KEY_R = 8,
27 GBA_KEY_L = 9,
28 GBA_KEY_MAX,
29 GBA_KEY_NONE = -1
30};
31
32CXX_GUARD_END
33
34#endif