Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - altkeyn() return alt key code for ascii code http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 altkeyn()           Return Alt key code for ASCII code
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   func uint altkeyn extern
   param value uint uKeyCode

 Arguments
   uKeyCode is the ASCII code of the key whose Alt key code is sought.

 Return
   Alt key code.

 Description
   The altkeyn() function returns the Alt key code corresponding to the
   passed ASCII key code. Only upper case ASCII codes are processed.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_altkeyn
   ? altkeyn( 'Z' )           // print 32812
   ? altkeyn( 'C' )           // print 32814
   ? altkeyn( 'c' )           // print 0, lower case codes are not processed
   endproc

   proc main
   Test_altkeyn()
   endproc

See Also: altkeyc()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson