diff options
| author | 2020-10-25 16:56:30 -0300 | |
|---|---|---|
| committer | 2020-10-25 16:56:30 -0300 | |
| commit | 2f6ba544831f4978302cbd690ca36296e1342663 (patch) | |
| tree | 0a6550bf474de1a4a2ccbeaea2d3eba3b34716ee | |
| parent | Merge pull request #4828 from lioncash/lockguard (diff) | |
| parent | controller: Convert led_patterns integer literals to bool literals (diff) | |
| download | yuzu-2f6ba544831f4978302cbd690ca36296e1342663.tar.gz yuzu-2f6ba544831f4978302cbd690ca36296e1342663.tar.xz yuzu-2f6ba544831f4978302cbd690ca36296e1342663.zip | |
Merge pull request #4827 from lioncash/trunc
controller: Convert led_patterns integer literals to bool literals
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/applets/controller.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/yuzu/applets/controller.cpp b/src/yuzu/applets/controller.cpp index 2760487a3..d6fbbbf2b 100644 --- a/src/yuzu/applets/controller.cpp +++ b/src/yuzu/applets/controller.cpp | |||
| @@ -18,15 +18,15 @@ | |||
| 18 | 18 | ||
| 19 | namespace { | 19 | namespace { |
| 20 | 20 | ||
| 21 | constexpr std::array<std::array<bool, 4>, 8> led_patterns = {{ | 21 | constexpr std::array<std::array<bool, 4>, 8> led_patterns{{ |
| 22 | {1, 0, 0, 0}, | 22 | {true, false, false, false}, |
| 23 | {1, 1, 0, 0}, | 23 | {true, true, false, false}, |
| 24 | {1, 1, 1, 0}, | 24 | {true, true, true, false}, |
| 25 | {1, 1, 1, 1}, | 25 | {true, true, true, true}, |
| 26 | {1, 0, 0, 1}, | 26 | {true, false, false, true}, |
| 27 | {1, 0, 1, 0}, | 27 | {true, false, true, false}, |
| 28 | {1, 0, 1, 1}, | 28 | {true, false, true, true}, |
| 29 | {0, 1, 1, 0}, | 29 | {false, true, true, false}, |
| 30 | }}; | 30 | }}; |
| 31 | 31 | ||
| 32 | void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index, | 32 | void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index, |