yuzu-emu
/
yuzu-android
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.
yuzu-android/src/common/key_map.h

36 lines
697 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.
#pragma once
#include "core/hle/service/hid.h"
namespace KeyMap {
class CitraKey {
public:
CitraKey() : keyCode(0) {}
CitraKey(int code) : keyCode(code) {}
int keyCode;
bool operator < (const CitraKey &other) const {
return keyCode < other.keyCode;
}
bool operator == (const CitraKey &other) const {
return keyCode == other.keyCode;
}
};
struct DefaultKeyMapping {
KeyMap::CitraKey key;
HID_User::PADState state;
};
void SetKeyMapping(CitraKey key, HID_User::PADState padState);
HID_User::PADState Get3DSKey(CitraKey key);
}