all repos — mgba @ 6a188289c209a3c905dc5209640904a91165c879

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};