Buttons don't have to clear state when not pressed after sticky fix.

This commit is contained in:
Henrik Rydgard committed 2013-03-31 00:24:27 +01:00
1 parent 7efbd96754
commit d7a58a3154
1 file changed
+1 -4
+1 -4
View File
@@ -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)