We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b8c318 commit d3c80f1Copy full SHA for d3c80f1
src/window.rs
@@ -414,6 +414,12 @@ impl Window {
414
self.events.push(event);
415
}
416
417
+ /// Clears events, usefull for handling issues with
418
+ /// custom event insertions or handlers
419
+ pub fn clear_events(&mut self) {
420
+ self.events.clear();
421
+ }
422
+
423
/// Returns the current event for the frame, as a reference.
424
pub fn events(&self) -> &Vec<Event> {
425
&self.events
0 commit comments