mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
ControlGroup: Convert group type enum into an enum class
Gets some constants out of the ControllerEmu namespace, and modifies ControlGroup so that it uses the enum type itself to represent the underlying type, rather than a u32 value.
This commit is contained in:
parent
51136681df
commit
26f17a1723
14 changed files with 61 additions and 59 deletions
|
@ -39,7 +39,7 @@ void EmulatedController::UpdateReferences(const ControllerInterface& devi)
|
|||
control->control_ref.get()->UpdateReference(devi, default_device);
|
||||
|
||||
// extension
|
||||
if (ctrlGroup->type == GROUP_TYPE_EXTENSION)
|
||||
if (ctrlGroup->type == GroupType::Extension)
|
||||
{
|
||||
for (auto& attachment : ((Extension*)ctrlGroup.get())->attachments)
|
||||
attachment->UpdateReferences(devi);
|
||||
|
@ -52,7 +52,7 @@ void EmulatedController::UpdateDefaultDevice()
|
|||
for (auto& ctrlGroup : groups)
|
||||
{
|
||||
// extension
|
||||
if (ctrlGroup->type == GROUP_TYPE_EXTENSION)
|
||||
if (ctrlGroup->type == GroupType::Extension)
|
||||
{
|
||||
for (auto& ai : ((Extension*)ctrlGroup.get())->attachments)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue