Forum unknown
· Programming
#DoIO
3 messages in this thread
Finally have successfully opened a window, and can output to it. (using
DoIO). When I change IOStdReq.command to CMD_READ, with length of 1, and
io_DATA = &c (c is defined as char), that task locks up and refuses to do
anything (other tasks run fine). Am I missing something? Thought command,
Length and Data were the only fields I had to change in order to input
something.
well, you've got your window open – now you gotta set the RAWKEYS bit in the
window IDCMP flags. note that you're not going to get ASCII back – it gives
raw keycodes. you have to xlate-u-self. to keep things simple, use DoIO at
first – once you get that working, you should start using Wait() and BeginIO
instead, so that your program can check for multiple events (keystroke, mouse
actions, serial data in, etc.) i think the ATERM series of terminal programs
use these i/o techniques – check 'em out. working examples are the best way to
learn a "weird" system like the amiga.
–Scotty
well, you've got your window open – now you gotta set the RAWKEYS bit in the
window IDCMP flags. note that you're not going to get ASCII back – it gives
raw keycodes. you have to xlate-u-self. to keep things simple, use DoIO at
first – once you get that working, you should start using Wait() and BeginIO
instead, so that your program can check for multiple events (keystroke, mouse
actions, serial data in, etc.) i think the ATERM series of terminal programs
use these i/o techniques – check 'em out. working examples are the best way to
learn a "weird" system like the amiga.
–Scotty