Added HID_SPVR service and split HID_U implementation into service/hid/hid.xxx
This commit is contained in:
parent
8946df97b5
commit
1f109c6b49
15 changed files with 378 additions and 264 deletions
|
@ -7,18 +7,18 @@
|
|||
|
||||
namespace KeyMap {
|
||||
|
||||
static std::map<HostDeviceKey, HID_User::PadState> key_map;
|
||||
static std::map<HostDeviceKey, Service::HID::PadState> key_map;
|
||||
static int next_device_id = 0;
|
||||
|
||||
int NewDeviceId() {
|
||||
return next_device_id++;
|
||||
}
|
||||
|
||||
void SetKeyMapping(HostDeviceKey key, HID_User::PadState padState) {
|
||||
void SetKeyMapping(HostDeviceKey key, Service::HID::PadState padState) {
|
||||
key_map[key].hex = padState.hex;
|
||||
}
|
||||
|
||||
HID_User::PadState GetPadKey(HostDeviceKey key) {
|
||||
Service::HID::PadState GetPadKey(HostDeviceKey key) {
|
||||
return key_map[key];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue