all repos — mgba @ b1828dbc59b8a9cc080c8c7f9472c46a3d39e90c

mGBA Game Boy Advance Emulator

include/mgba/internal/gb/input.h (view raw)

 1/* Copyright (c) 2013-2019 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 GB_INPUT_H
 7#define GB_INPUT_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/core/input.h>
14
15extern MGBA_EXPORT const struct mInputPlatformInfo GBInputInfo;
16
17enum GBKey {
18	GB_KEY_A = 0,
19	GB_KEY_B = 1,
20	GB_KEY_SELECT = 2,
21	GB_KEY_START = 3,
22	GB_KEY_RIGHT = 4,
23	GB_KEY_LEFT = 5,
24	GB_KEY_UP = 6,
25	GB_KEY_DOWN = 7,
26	GB_KEY_MAX,
27};
28
29CXX_GUARD_END
30
31#endif