diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/key_map.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/common/key_map.h b/src/common/key_map.h index b62f017c6..040794578 100644 --- a/src/common/key_map.h +++ b/src/common/key_map.h | |||
| @@ -55,14 +55,12 @@ struct HostDeviceKey { | |||
| 55 | int key_code; | 55 | int key_code; |
| 56 | int device_id; ///< Uniquely identifies a host device | 56 | int device_id; ///< Uniquely identifies a host device |
| 57 | 57 | ||
| 58 | bool operator<(const HostDeviceKey &other) const { | 58 | bool operator<(const HostDeviceKey& other) const { |
| 59 | return std::tie(key_code, device_id) < | 59 | return std::tie(key_code, device_id) < std::tie(other.key_code, other.device_id); |
| 60 | std::tie(other.key_code, other.device_id); | ||
| 61 | } | 60 | } |
| 62 | 61 | ||
| 63 | bool operator==(const HostDeviceKey &other) const { | 62 | bool operator==(const HostDeviceKey& other) const { |
| 64 | return std::tie(key_code, device_id) == | 63 | return std::tie(key_code, device_id) == std::tie(other.key_code, other.device_id); |
| 65 | std::tie(other.key_code, other.device_id); | ||
| 66 | } | 64 | } |
| 67 | }; | 65 | }; |
| 68 | 66 | ||
| @@ -92,5 +90,4 @@ void PressKey(EmuWindow& emu_window, HostDeviceKey key); | |||
| 92 | * Maps a key release action and call the corresponding function in EmuWindow | 90 | * Maps a key release action and call the corresponding function in EmuWindow |
| 93 | */ | 91 | */ |
| 94 | void ReleaseKey(EmuWindow& emu_window, HostDeviceKey key); | 92 | void ReleaseKey(EmuWindow& emu_window, HostDeviceKey key); |
| 95 | |||
| 96 | } | 93 | } |