all repos — mgba @ 78526ae71a7776c57b3a63a74c46031bf7a9a4f8

mGBA Game Boy Advance Emulator

src/gba/input.c (view raw)

 1/* Copyright (c) 2013-2016 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/gba/input.h>
 7
 8#include <mgba/gba/interface.h>
 9
10const struct mInputPlatformInfo GBAInputInfo = {
11	.platformName = "gba",
12	.keyId = (const char*[]) {
13		"A",
14		"B",
15		"Select",
16		"Start",
17		"Right",
18		"Left",
19		"Up",
20		"Down",
21		"R",
22		"L"
23	},
24	.nKeys = GBA_KEY_MAX,
25	.hat = {
26		.up = GBA_KEY_UP,
27		.left = GBA_KEY_LEFT,
28		.down = GBA_KEY_DOWN,
29		.right = GBA_KEY_RIGHT
30	}
31};