Hello,
I'd like to read a keystroke, then based on what is pressed do <this> or <that>.
I'd like to do this in the most smooth way possible, thus using input.device
I've mumbled over the documentation and
this post but I don't have clear what is needed to do. Basically I have to:
- CreateMsgPort()
- CreateIORequest()
- OpenDevice()
- SendIO() ? DoIO() ?
and then? Do I have to prepare an InputEvent struct?
Attached a tentative code snippet...
Thanks