all repos — mgba @ 67905d281bfecbb06f51f2ca5ac939df378734a5

mGBA Game Boy Advance Emulator

src/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 "core/input.h"
10
11extern const struct mInputPlatformInfo GBAInputInfo;
12
13enum GBAKey {
14	GBA_KEY_A = 0,
15	GBA_KEY_B = 1,
16	GBA_KEY_SELECT = 2,
17	GBA_KEY_START = 3,
18	GBA_KEY_RIGHT = 4,
19	GBA_KEY_LEFT = 5,
20	GBA_KEY_UP = 6,
21	GBA_KEY_DOWN = 7,
22	GBA_KEY_R = 8,
23	GBA_KEY_L = 9,
24	GBA_KEY_MAX,
25	GBA_KEY_NONE = -1
26};
27
28#endif