mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-15 11:07:57 -05:00
Initial HID PAD work, with GLFW only.
This commit is contained in:
21
src/common/key_map.cpp
Normal file
21
src/common/key_map.cpp
Normal file
@ -0,0 +1,21 @@
|
||||
// Copyright 2013 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "key_map.h"
|
||||
#include <map>
|
||||
|
||||
|
||||
namespace KeyMap {
|
||||
|
||||
std::map<CitraKey, HID_User::PADState> g_key_map;
|
||||
|
||||
void SetKeyMapping(CitraKey key, HID_User::PADState padState) {
|
||||
g_key_map[key].hex = padState.hex;
|
||||
}
|
||||
|
||||
HID_User::PADState Get3DSKey(CitraKey key) {
|
||||
return g_key_map[key];
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user