Input: Be more through in resetState (#10612)

Drop the actual slot data storage, in addition to the active references
This commit is contained in:
NiLuJe
2023-07-02 22:54:14 +02:00
committed by GitHub
parent b24059b2cb
commit 752f23c85e

View File

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