src/ds/input.c (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#include <mgba/internal/ds/input.h>
7
8const struct mInputPlatformInfo DSInputInfo = {
9 .platformName = "ds",
10 .keyId = (const char*[]) {
11 "A",
12 "B",
13 "Select",
14 "Start",
15 "Right",
16 "Left",
17 "Up",
18 "Down",
19 "R",
20 "L",
21 "X",
22 "Y"
23 },
24 .nKeys = DS_KEY_MAX,
25 .hat = {
26 .up = DS_KEY_UP,
27 .left = DS_KEY_LEFT,
28 .down = DS_KEY_DOWN,
29 .right = DS_KEY_RIGHT
30 }
31};