summaryrefslogtreecommitdiff
path: root/src/common/key_map.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-18 09:38:01 +0900
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-09-18 09:38:01 +0900
commitdc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch)
tree569a7f13128450bbab973236615587ff00bced5f /src/common/key_map.h
parentfe948af0952d7badacbce62a8e35a3a1421245ba (diff)
Sources: Run clang-format on everything.
Diffstat (limited to 'src/common/key_map.h')
-rw-r--r--src/common/key_map.h11
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 {
int key_code;
int device_id; ///< Uniquely identifies a host device
- bool operator<(const HostDeviceKey &other) const {
- return std::tie(key_code, device_id) <
- std::tie(other.key_code, other.device_id);
+ bool operator<(const HostDeviceKey& other) const {
+ return std::tie(key_code, device_id) < std::tie(other.key_code, other.device_id);
}
- bool operator==(const HostDeviceKey &other) const {
- return std::tie(key_code, device_id) ==
- std::tie(other.key_code, other.device_id);
+ bool operator==(const HostDeviceKey& other) const {
+ return std::tie(key_code, device_id) == std::tie(other.key_code, other.device_id);
}
};
@@ -92,5 +90,4 @@ void PressKey(EmuWindow& emu_window, HostDeviceKey key);
* Maps a key release action and call the corresponding function in EmuWindow
*/
void ReleaseKey(EmuWindow& emu_window, HostDeviceKey key);
-
}