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

ControllerInterface: Add InputBackend interface. #11193

Merged

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Oct 22, 2022

This adds an InputBackend interface for ControllerInterface to use to init/deinit/populate the various input backends with fewer #ifdefs.

Moving the input backend code into classes also eliminates their global state.

I've only changed SDL, evdev, and DSU so far. Maybe that is enough for this PR.

Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested, but looks good to me.

@AdmiralCurtiss AdmiralCurtiss merged commit 1d07332 into dolphin-emu:master Nov 3, 2022
11 checks passed
@jordan-woyak jordan-woyak deleted the ciface-input-backend-interface branch November 3, 2022 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants