all repos — mgba @ b71ffe711c4ccb485b3b1171d65a4e1449640397

mGBA Game Boy Advance Emulator

src/feature/gui/remap.h (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#ifndef GUI_REMAP_H
 7#define GUI_REMAP_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13struct GUIInputKeys {
14	const char* name;
15	uint32_t id;
16	const char* const* keyNames;
17	size_t nKeys;
18};
19
20struct GUIParams;
21struct mInputMap;
22
23void mGUIRemapKeys(struct GUIParams*, struct mInputMap*, const struct GUIInputKeys*);
24
25CXX_GUARD_END
26
27#endif