all repos — mgba @ 908b0a425ec5e33391b47ac674e7cef9de01e8bc

mGBA Game Boy Advance Emulator

include/mgba/internal/ds/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 DS_INPUT_H
 7#define DS_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 DSInputInfo;
16
17enum GBAKey {
18	DS_KEY_A = 0,
19	DS_KEY_B = 1,
20	DS_KEY_SELECT = 2,
21	DS_KEY_START = 3,
22	DS_KEY_RIGHT = 4,
23	DS_KEY_LEFT = 5,
24	DS_KEY_UP = 6,
25	DS_KEY_DOWN = 7,
26	DS_KEY_R = 8,
27	DS_KEY_L = 9,
28	DS_KEY_X = 10,
29	DS_KEY_Y = 11,
30	DS_KEY_MAX,
31	DS_KEY_NONE = -1
32};
33
34CXX_GUARD_END
35
36#endif