View Single Post
Old 20 December 2011, 23:24   #1
jman
Registered User
 
Join Date: Nov 2010
Location: .
Posts: 359
[REQ:ASM] Reading a keystroke

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
Attached Files
File Type: s input.s (952 Bytes, 486 views)
jman is offline  
 
Page generated in 0.05145 seconds with 11 queries