Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputCommon/ControllerEmu: Break out functionality of EmulatedController to eliminate redundant members. #13295

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Jan 21, 2025

The Wii Remote Extension classes previously derived from ControllerEmu giving them redundant/unused "default device" and "expression variables" members.

Common functionality has been moved to a ControlGroupContainer class.
This eliminated the redundant members and some unnecessary function arguments.

Attachments config save/loading is now appropriately handled in an overridden virtual function instead of using if (type == GroupType::Attachments).

MapFloat and MapToFloat static member functions changed into more-appropriate free-functions.

I'm mainly just moving code around here. Behaviors should be entirely unchanged.

to eliminate redundant unused members in Wii Remote extension objects.
@jordan-woyak jordan-woyak force-pushed the controller-emu-cleanup branch from 6febb44 to 3fb9213 Compare January 21, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant