4glWorks reference: user interaction extensions

readchar

file ousrc.c
declaration
function readchar()
returns c, char, key pressed
purpose Waits for the user to hit a key on the keyboard, and returns its value
example none
notes
  • does not set _eflastkey
  • can be safely used in SCREEN MODE

readkey

file iusrc.c
declaration
function readkey()
returns key, char, key pressed
purpose Waits for the user to hit a key on the keyboard, and returns its value
example none
notes
  • Use fgl_lastkey to retrieve the integer scan code of the key pressed by the user
  • Clears the error line


Please address questions or comments to marco greco
(last updated Sat, 20 April 2002 23:07:22 BST)