summaryrefslogtreecommitdiff
path: root/src/core/hid/emulated_devices.cpp
diff options
context:
space:
mode:
authorGravatar arades792023-02-14 11:13:47 -0500
committerGravatar arades792023-02-14 12:35:39 -0500
commit683019878fc939b418a65e1c5d84b066596d7655 (patch)
tree6b2a2e8ea34cb00a3fccf3613a52475550997035 /src/core/hid/emulated_devices.cpp
parentapply clang-format (diff)
downloadyuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.gz
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.xz
yuzu-683019878fc939b418a65e1c5d84b066596d7655.zip
remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency
Signed-off-by: arades79 <scravers@protonmail.com>
Diffstat (limited to 'src/core/hid/emulated_devices.cpp')
-rw-r--r--src/core/hid/emulated_devices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hid/emulated_devices.cpp b/src/core/hid/emulated_devices.cpp
index e380da3a4..836f32c0f 100644
--- a/src/core/hid/emulated_devices.cpp
+++ b/src/core/hid/emulated_devices.cpp
@@ -213,7 +213,7 @@ void EmulatedDevices::SetKeyboardButton(const Common::Input::CallbackStatus& cal
213} 213}
214 214
215void EmulatedDevices::UpdateKey(std::size_t key_index, bool status) { 215void EmulatedDevices::UpdateKey(std::size_t key_index, bool status) {
216 constexpr static std::size_t KEYS_PER_BYTE = 8; 216 constexpr std::size_t KEYS_PER_BYTE = 8;
217 auto& entry = device_status.keyboard_state.key[key_index / KEYS_PER_BYTE]; 217 auto& entry = device_status.keyboard_state.key[key_index / KEYS_PER_BYTE];
218 const u8 mask = static_cast<u8>(1 << (key_index % KEYS_PER_BYTE)); 218 const u8 mask = static_cast<u8>(1 << (key_index % KEYS_PER_BYTE));
219 if (status) { 219 if (status) {