•  Back 
  •  About the BIOS 
  •  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-File3.1.9  Kbshift                                                     TOS

 Name:         Keyboard shift status of the 'special' keys Spezial- 
               Tasten.

 Opcode:       11

 Syntax:       int32_t Kbshift ( int16_t mode );

 Description:  The BIOS routine Kbshift establishes or alters the 
               current state of the keyboard 'special' keys. If mode 
               is negative, then only the state is established. If 
               mode is 0 or greater than 0, then the corresponding 
               status will be set.
               The individual bits are defined as follows:

                Bit  Meaning 
                 0   Right shift key 
                 1   Left shift key 
                 2   Control key 
                 3   ALT key 
                 4   Caps-lock 
                 5   Right mouse button 
                 6   Left mouse button 
                 7   Alt Gr since TOS 4.06 (Milan) 

               Note: The function simply inquires an internal system 
               variable of the BIOS, whose address can be calculated 
               via _sysbase if required.
               For TOS 1.0 this system variable is at address 0xE1B.

 Return value: The function returns the set keyboard status.

 Availability: All TOS versions.

 See also:     Binding