all repos — mgba @ d76e26c39dabbf7d91df6b8a9d390e7af633bb6a

mGBA Game Boy Advance Emulator

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

 1/* Copyright (c) 2013-2017 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 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	GB_KEY_NONE = -1
28};
29
30CXX_GUARD_END
31
32#endif