Fix misleading var name

Update() can be called at subframe intervals.
This commit is contained in:
Daniel Dressler 2013-07-04 12:12:50 -07:00
parent c44569588b
commit 78e0d301c3
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
};