Clean up __Ctrl button functions.

This commit is contained in:
Henrik Rydgård committed 2023-04-01 08:55:45 +02:00
1 parent 2428051f17
commit 04d3d3111c
7 files changed
+25 -54

No files matched your search

+3 -3
View File
@@ -179,13 +179,13 @@ EmuScreen::EmuScreen(const Path &filename)
std::bind(&EmuScreen::onVKey, this, _1, _2),
std::bind(&EmuScreen::onVKeyAnalog, this, _1, _2),
[](uint32_t bitsToSet, uint32_t bitsToClear) {
__CtrlSetAllButtons(bitsToSet, bitsToClear);
__CtrlUpdateButtons(bitsToSet, bitsToClear);
},
[](int pspButton, bool down) {
if (down) {
__CtrlButtonDown(pspButton);
__CtrlUpdateButtons(pspButton, 0);
} else {
__CtrlButtonUp(pspButton);
__CtrlUpdateButtons(0, pspButton);
}
},
&SetPSPAnalog,