mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-22 08:44:51 +00:00
Fix misleading var name
Update() can be called at subframe intervals.
This commit is contained in:
parent
c44569588b
commit
78e0d301c3
@ -106,7 +106,7 @@ EmuScreen::EmuScreen(const std::string &filename) : invalid_(true) {
|
||||
osm.Show(s->T("PressESC", "Press ESC to open the pause menu"), 3.0f);
|
||||
}
|
||||
#endif
|
||||
pressedLastFrame = 0;
|
||||
pressedLastUpdate = 0;
|
||||
}
|
||||
|
||||
EmuScreen::~EmuScreen() {
|
||||
@ -242,8 +242,8 @@ void EmuScreen::update(InputState &input) {
|
||||
pressed |= KeyMap::KeyToPspButton(key);
|
||||
}
|
||||
__CtrlButtonDown(pressed);
|
||||
__CtrlButtonUp(pressedLastFrame & ~pressed);
|
||||
pressedLastFrame = pressed;
|
||||
__CtrlButtonUp(pressedLastUpdate & ~pressed);
|
||||
pressedLastUpdate = pressed;
|
||||
// End Set Keys --
|
||||
|
||||
float stick_x = input.pad_lstick_x;
|
||||
|
@ -38,5 +38,5 @@ private:
|
||||
// Something invalid was loaded, don't try to emulate
|
||||
bool invalid_;
|
||||
std::string errorMessage_;
|
||||
uint32_t pressedLastFrame;
|
||||
uint32_t pressedLastUpdate;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user