diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-07-13 21:12:13 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-07-13 21:12:13 +0200 |
| commit | 9a0e6b3c28e10de19b1f115537bc1dc51da69f19 (patch) | |
| tree | 0c318c8a880f07d941ae8d3b087f703ab1c9cb64 /src/hid_core/frontend/emulated_controller.cpp | |
| parent | defb8bf2e2eb9865f5ee0c6b9ede7a5af28bccc1 (diff) | |
[msvc] fix error with new <T>bitfields (#4196)
fixes MSVC build errors
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4196
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Diffstat (limited to 'src/hid_core/frontend/emulated_controller.cpp')
| -rw-r--r-- | src/hid_core/frontend/emulated_controller.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/hid_core/frontend/emulated_controller.cpp b/src/hid_core/frontend/emulated_controller.cpp index 1c2d1a464f..36c9a0f02f 100644 --- a/src/hid_core/frontend/emulated_controller.cpp +++ b/src/hid_core/frontend/emulated_controller.cpp @@ -1662,17 +1662,17 @@ bool EmulatedController::IsControllerFullkey(bool use_temporary_value) const { bool EmulatedController::IsControllerSupported(bool use_temporary_value) const { const auto type = is_configuring.load() && use_temporary_value ? tmp_npad_type.load() : npad_type.load(); switch (type) { - case NpadStyleIndex::Fullkey: return supported_style_tag.fullkey; - case NpadStyleIndex::Handheld: return supported_style_tag.handheld; - case NpadStyleIndex::JoyconDual: return supported_style_tag.joycon_dual; - case NpadStyleIndex::JoyconLeft: return supported_style_tag.joycon_left; - case NpadStyleIndex::JoyconRight: return supported_style_tag.joycon_right; - case NpadStyleIndex::GameCube: return supported_style_tag.gamecube; - case NpadStyleIndex::Pokeball: return supported_style_tag.palma; - case NpadStyleIndex::NES: return supported_style_tag.lark; - case NpadStyleIndex::SNES: return supported_style_tag.lucia; - case NpadStyleIndex::N64: return supported_style_tag.lagoon; - case NpadStyleIndex::SegaGenesis: return supported_style_tag.lager; + case NpadStyleIndex::Fullkey: return bool(supported_style_tag.fullkey); + case NpadStyleIndex::Handheld: return bool(supported_style_tag.handheld); + case NpadStyleIndex::JoyconDual: return bool(supported_style_tag.joycon_dual); + case NpadStyleIndex::JoyconLeft: return bool(supported_style_tag.joycon_left); + case NpadStyleIndex::JoyconRight: return bool(supported_style_tag.joycon_right); + case NpadStyleIndex::GameCube: return bool(supported_style_tag.gamecube); + case NpadStyleIndex::Pokeball: return bool(supported_style_tag.palma); + case NpadStyleIndex::NES: return bool(supported_style_tag.lark); + case NpadStyleIndex::SNES: return bool(supported_style_tag.lucia); + case NpadStyleIndex::N64: return bool(supported_style_tag.lagoon); + case NpadStyleIndex::SegaGenesis: return bool(supported_style_tag.lager); default: return false; } } |
