(self, structure)
| 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): |
no test coverage detected