CompuServe Thread

#C Help (Keyboard Input)

3 messages in this thread
#40553From: RicoApr 16, 1994 5:13 AM
Hello, I need help with C. I writing a program that needs to read the keyboard without stopping other parts of the program. I was going to use rawkey ciaa, but the example I had did not compile under dice. If anyone has any suggestion I would be thankful. Thanks, Rico Walker
#40565From: Peter WadeApr 16, 1994 3:07 PM
If are reading input from a window you can get Intuition to give you keyboard events. If you don't want to wait for input then call GetMsg and if there is no input waiting it will return a NULL. Peter Wade Autopiloting from London, England
#40700From: Derek ParnellApr 22, 1994 9:08 AM
If you are reading from a AMIGADOS device eg. CON: then you must first alter it to RAW:. This can be done by either openning a RAW: device instead of a CON: device or if you are reading from the stdin console you can send it the appropriate AMIGADOS packages to change it to a RAW: device. The details are in the book 'The AmigaDOS Manual' by Bantam Books. I've got the third edition and the stuff you need is on page 424 'Using Packets Directly'. —- Bye.