aboutsummaryrefslogtreecommitdiff
path: root/src/hid_core/frontend/emulated_controller.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-07-09 03:47:04 +0200
committercrueter <crueter@eden-emu.dev>2026-07-09 03:47:04 +0200
commit41762940d6bd6350901f12662248b95b91b51e6c (patch)
tree9aa1c2290aaae63076d7662caba7af725c6062a4 /src/hid_core/frontend/emulated_controller.cpp
parentc2e74a93804f0ba4e7e87a95e8881bbe817aa0a4 (diff)
[common] rework BitField and BitUtil, use concepts whenever possible (#4076)
test no regressions especially on Liiinux Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4076 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/hid_core/frontend/emulated_controller.cpp')
-rw-r--r--src/hid_core/frontend/emulated_controller.cpp22
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 6022f90951..1c2d1a464f 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.As<bool>();
- case NpadStyleIndex::Handheld: return supported_style_tag.handheld.As<bool>();
- case NpadStyleIndex::JoyconDual: return supported_style_tag.joycon_dual.As<bool>();
- case NpadStyleIndex::JoyconLeft: return supported_style_tag.joycon_left.As<bool>();
- case NpadStyleIndex::JoyconRight: return supported_style_tag.joycon_right.As<bool>();
- case NpadStyleIndex::GameCube: return supported_style_tag.gamecube.As<bool>();
- case NpadStyleIndex::Pokeball: return supported_style_tag.palma.As<bool>();
- case NpadStyleIndex::NES: return supported_style_tag.lark.As<bool>();
- case NpadStyleIndex::SNES: return supported_style_tag.lucia.As<bool>();
- case NpadStyleIndex::N64: return supported_style_tag.lagoon.As<bool>();
- case NpadStyleIndex::SegaGenesis: return supported_style_tag.lager.As<bool>();
+ 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;
default: return false;
}
}