View Single Post
Old 21 December 2011, 21:02   #2
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
First, there are a few bugs in your code, f.ex you're doing "move.l name, a0" in a few places when you probably meant to do "lea name, a0" to get its address in memory, etc.

Do you want to wait until a keyboard event occurs, or do you want to check the current state of the keyboard? If you want to wait for an event then add an input handler through input.device using the IND_ADDHANDLER and IND_REMHANDLER commands and go through all incoming events. If you want to check the current state of the keyboard then send KBD_READMATRIX to keyboard.device instead. You can find thorough examples of this in the RKM Devices.
Leffmann is offline  
 
Page generated in 0.04212 seconds with 10 queries