mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-11 08:39:28 +01:00
Buttons don't have to clear state when not pressed after sticky fix.
This commit is contained in:
1 parent
7efbd96754
commit
d7a58a3154
1 file changed
+1
-4
@@ -24,11 +24,8 @@ void TouchButton::update(InputState &input_state)
|
||||
isDown_ = true;
|
||||
}
|
||||
|
||||
if (isDown_) {
|
||||
if (isDown_)
|
||||
input_state.pad_buttons |= button_;
|
||||
} else if (oldIsDown && !isDown_) {
|
||||
input_state.pad_buttons &= ~button_;
|
||||
}
|
||||
}
|
||||
|
||||
void TouchButton::draw(DrawBuffer &db, uint32_t color, uint32_t colorOverlay)
|
||||
|
||||
Reference in new issue
Block a user