src/gb/input.c (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#include <mgba/internal/gb/input.h>
7
8#include <mgba/gb/interface.h>
9
10const struct mInputPlatformInfo GBInputInfo = {
11 .platformName = "gb",
12 .keyId = (const char*[]) {
13 "A",
14 "B",
15 "Select",
16 "Start",
17 "Right",
18 "Left",
19 "Up",
20 "Down",
21 },
22 .nKeys = GB_KEY_MAX,
23 .hat = {
24 .up = GB_KEY_UP,
25 .left = GB_KEY_LEFT,
26 .down = GB_KEY_DOWN,
27 .right = GB_KEY_RIGHT
28 }
29};