mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 16:53:40 +01:00
Clean up __Ctrl button functions.
This commit is contained in:
1 parent
2428051f17
commit
04d3d3111c
7 files changed
+25
-54
No files matched your search
+3
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user