citra-emu
/
citra-canary
Archived
1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-canary/src/common/key_map.cpp

22 lines
403 B
C++
Raw Normal View History

2014-09-04 01:12:58 +00:00
// 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];
}
}