mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-01 12:57:52 +00:00
controller: Convert led_patterns integer literals to bool literals
'bool' isn't always guaranteed to be the same size as an int, so this can technically cause truncation warnings if we support other platforms.
This commit is contained in:
parent
ea20b5c970
commit
061a63547f
1 changed files with 9 additions and 9 deletions
|
@ -18,15 +18,15 @@
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
constexpr std::array<std::array<bool, 4>, 8> led_patterns = {{
|
constexpr std::array<std::array<bool, 4>, 8> led_patterns{{
|
||||||
{1, 0, 0, 0},
|
{true, false, false, false},
|
||||||
{1, 1, 0, 0},
|
{true, true, false, false},
|
||||||
{1, 1, 1, 0},
|
{true, true, true, false},
|
||||||
{1, 1, 1, 1},
|
{true, true, true, true},
|
||||||
{1, 0, 0, 1},
|
{true, false, false, true},
|
||||||
{1, 0, 1, 0},
|
{true, false, true, false},
|
||||||
{1, 0, 1, 1},
|
{true, false, true, true},
|
||||||
{0, 1, 1, 0},
|
{false, true, true, false},
|
||||||
}};
|
}};
|
||||||
|
|
||||||
void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index,
|
void UpdateController(Settings::ControllerType controller_type, std::size_t npad_index,
|
||||||
|
|
Loading…
Reference in a new issue