ControlMapper: Change the callbacks to be more suitable for the upcoming refactor. (#17209)

* ControlMapper: Change the callbacks to be more suitable for the upcoming refactor.

* SetAllButtons: Separate bits to set and bits to clear.

* Oops, missed committing some files somehow
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-03-30 10:47:28 +02:00
1 parent d65afcc7f0
commit 26bf40c497
8 files changed
+171 -182

No files matched your search

+2 -2
View File
@@ -449,8 +449,8 @@ void KeyMappingNewMouseKeyDialog::axis(const AxisInput &axis) {
AnalogSetupScreen::AnalogSetupScreen(const Path &gamePath) : UIDialogScreenWithGameBackground(gamePath) {
mapper_.SetCallbacks(
[](int vkey) {},
[](int vkey) {},
[](int vkey, bool down) {},
[&](uint32_t bitsToSet, uint32_t bitsToClear) {},
[&](int button, bool down) {},
[&](int stick, float x, float y) {
analogX_[stick] = x;