diff options
| author | 2016-05-15 19:35:06 +0300 | |
|---|---|---|
| committer | 2016-05-15 19:35:06 +0300 | |
| commit | 6cccdcacd2c8dc442db5a8ece5e754b0ed655d8b (patch) | |
| tree | 5a673aa806a992df2f01fb90748602455b6df503 /src/common/key_map.h | |
| parent | fixup! Refactor input system (diff) | |
| download | yuzu-6cccdcacd2c8dc442db5a8ece5e754b0ed655d8b.tar.gz yuzu-6cccdcacd2c8dc442db5a8ece5e754b0ed655d8b.tar.xz yuzu-6cccdcacd2c8dc442db5a8ece5e754b0ed655d8b.zip | |
fixup! fixup! Refactor input system
Diffstat (limited to 'src/common/key_map.h')
| -rw-r--r-- | src/common/key_map.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/key_map.h b/src/common/key_map.h index 4b585c1b9..b62f017c6 100644 --- a/src/common/key_map.h +++ b/src/common/key_map.h | |||
| @@ -13,7 +13,7 @@ class EmuWindow; | |||
| 13 | namespace KeyMap { | 13 | namespace KeyMap { |
| 14 | 14 | ||
| 15 | /** | 15 | /** |
| 16 | * Represents a key mapping target that are not 3DS real buttons. | 16 | * Represents key mapping targets that are not real 3DS buttons. |
| 17 | * They will be handled by KeyMap and translated to 3DS input. | 17 | * They will be handled by KeyMap and translated to 3DS input. |
| 18 | */ | 18 | */ |
| 19 | enum class IndirectTarget { | 19 | enum class IndirectTarget { |
| @@ -25,7 +25,7 @@ enum class IndirectTarget { | |||
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * Represents a key mapping target. It can be a PadState that represents 3DS real buttons, | 28 | * Represents a key mapping target. It can be a PadState that represents real 3DS buttons, |
| 29 | * or an IndirectTarget. | 29 | * or an IndirectTarget. |
| 30 | */ | 30 | */ |
| 31 | struct KeyTarget { | 31 | struct KeyTarget { |
| @@ -84,12 +84,12 @@ void SetKeyMapping(HostDeviceKey key, KeyTarget target); | |||
| 84 | void ClearKeyMapping(int device_id); | 84 | void ClearKeyMapping(int device_id); |
| 85 | 85 | ||
| 86 | /** | 86 | /** |
| 87 | * Maps a key press actions and call the corresponding function in EmuWindow | 87 | * Maps a key press action and call the corresponding function in EmuWindow |
| 88 | */ | 88 | */ |
| 89 | void PressKey(EmuWindow& emu_window, HostDeviceKey key); | 89 | void PressKey(EmuWindow& emu_window, HostDeviceKey key); |
| 90 | 90 | ||
| 91 | /** | 91 | /** |
| 92 | * Maps a key release actions and call the corresponding function in EmuWindow | 92 | * Maps a key release action and call the corresponding function in EmuWindow |
| 93 | */ | 93 | */ |
| 94 | void ReleaseKey(EmuWindow& emu_window, HostDeviceKey key); | 94 | void ReleaseKey(EmuWindow& emu_window, HostDeviceKey key); |
| 95 | 95 | ||