MCPcopy
hub / github.com/Sentdex/pygta5 / Input

Method Input

original_project/keys.py:471–478  ·  view source on GitHub ↗
(self, structure)

Source from the content-addressed store, hash-verified

469
470 # get input object
471 def Input(self, structure):
472 if isinstance(structure, MOUSEINPUT):
473 return INPUT(0, _INPUTunion(mi=structure))
474 if isinstance(structure, KEYBDINPUT):
475 return INPUT(1, _INPUTunion(ki=structure))
476 if isinstance(structure, HARDWAREINPUT):
477 return INPUT(2, _INPUTunion(hi=structure))
478 raise TypeError('Cannot create INPUT structure!')
479
480 # mouse input
481 def MouseInput(self, flags, x, y, data):

Callers 3

MouseMethod · 0.95
KeyboardMethod · 0.95
HardwareMethod · 0.95

Calls 2

INPUTClass · 0.85
_INPUTunionClass · 0.85

Tested by

no test coverage detected