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