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

Class PagerInput

pager/pagerctl.py:23–29  ·  view source on GitHub ↗

Input state structure matching pager_input_t in C.

Source from the content-addressed store, hash-verified

21
22
23class PagerInput(Structure):
24 """Input state structure matching pager_input_t in C."""
25 _fields_ = [
26 ("current", c_uint8), # Currently held buttons (bitmask)
27 ("pressed", c_uint8), # Just pressed this frame (bitmask)
28 ("released", c_uint8), # Just released this frame (bitmask)
29 ]
30
31
32class PagerInputEvent(Structure):

Callers 1

poll_inputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected