diff options
| author | 2023-02-14 11:13:47 -0500 | |
|---|---|---|
| committer | 2023-02-14 12:35:39 -0500 | |
| commit | 683019878fc939b418a65e1c5d84b066596d7655 (patch) | |
| tree | 6b2a2e8ea34cb00a3fccf3613a52475550997035 /src/input_common/helpers/joycon_driver.cpp | |
| parent | apply clang-format (diff) | |
| download | yuzu-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/input_common/helpers/joycon_driver.cpp')
| -rw-r--r-- | src/input_common/helpers/joycon_driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/helpers/joycon_driver.cpp b/src/input_common/helpers/joycon_driver.cpp index 6ab16cde6..e65b6b845 100644 --- a/src/input_common/helpers/joycon_driver.cpp +++ b/src/input_common/helpers/joycon_driver.cpp | |||
| @@ -129,7 +129,7 @@ void JoyconDriver::InputThread(std::stop_token stop_token) { | |||
| 129 | input_thread_running = true; | 129 | input_thread_running = true; |
| 130 | 130 | ||
| 131 | // Max update rate is 5ms, ensure we are always able to read a bit faster | 131 | // Max update rate is 5ms, ensure we are always able to read a bit faster |
| 132 | constexpr static int ThreadDelay = 2; | 132 | constexpr int ThreadDelay = 2; |
| 133 | std::vector<u8> buffer(MaxBufferSize); | 133 | std::vector<u8> buffer(MaxBufferSize); |
| 134 | 134 | ||
| 135 | while (!stop_token.stop_requested()) { | 135 | while (!stop_token.stop_requested()) { |
| @@ -548,7 +548,7 @@ DriverResult JoyconDriver::GetDeviceType(SDL_hid_device_info* device_info, | |||
| 548 | {0x2007, ControllerType::Right}, | 548 | {0x2007, ControllerType::Right}, |
| 549 | {0x2009, ControllerType::Pro}, | 549 | {0x2009, ControllerType::Pro}, |
| 550 | }; | 550 | }; |
| 551 | constexpr static u16 nintendo_vendor_id = 0x057e; | 551 | constexpr u16 nintendo_vendor_id = 0x057e; |
| 552 | 552 | ||
| 553 | controller_type = ControllerType::None; | 553 | controller_type = ControllerType::None; |
| 554 | if (device_info->vendor_id != nintendo_vendor_id) { | 554 | if (device_info->vendor_id != nintendo_vendor_id) { |