Input: Be more through in resetState (#10612)

Drop the actual slot data storage, in addition to the active references
reviewable/pr10632/r1
NiLuJe 11 months ago committed by GitHub
parent b24059b2cb
commit 752f23c85e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -506,6 +506,15 @@ function Input:resetState()
self.gesture_detector:resetClockSource()
end
self:clearTimeouts()
-- Drop the slots on our end, too
self:newFrame()
self.cur_slot = self.main_finger_slot
self.ev_slots = {
[self.main_finger_slot] = {
slot = self.main_finger_slot,
},
}
end
function Input:handleKeyBoardEv(ev)

Loading…
Cancel
Save