MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_input_event

Method get_input_event

pager/pagerctl_mock.py:420–426  ·  view source on GitHub ↗

Get next input event from queue. Returns (button, type, timestamp) or None.

(self)

Source from the content-addressed store, hash-verified

418 return self._held_buttons, pressed, released
419
420 def get_input_event(self):
421 """Get next input event from queue. Returns (button, type, timestamp) or None."""
422 self._pump_events()
423 with self._event_lock:
424 if self._event_queue:
425 return self._event_queue.popleft()
426 return None
427
428 def has_input_events(self):
429 """Check if there are pending events."""

Callers

nothing calls this directly

Calls 1

_pump_eventsMethod · 0.95

Tested by

no test coverage detected