•  Back 
  •  CPX functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File9.1.2.9  cpx_key                                                   TOS

 Name:        »cpx_key« - Event for a key-press.

 Declaration  VOID cdecl (*cpx_key) (int16_t kstate, int16_t key, 
              int16_t *event);

 Description  The call cpx_key is made when a keyboard vvent has 
              occurred. The following apply:

               Parameter  Meaning
               kstate     Status of the 'special' keys ([Alternate], 
                          [Control], [Shift], etc.)
               key        Triggering key:
                           High byte  :  Scancode of the key 
                           Low byte   :  ASCII-code of the key 

               event      Set to the value 1 when the CPX is to be 
                          exited

 Return value: The function does not return a result.

 Group:       CPX functions

 See also:    cpx_button   cpx_timer