a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 lowlevel.library
  AddKBInt
  AddTimerInt
  AddVBlankInt
  ElapsedTime
  GetKey
  GetLanguageSelection
  QueryKeys
  ReadJoyPort
  RemKBInt
  RemTimerInt
  RemVBlankInt
  SetJoyPortAttrsA
  StartTimerInt
  StopTimerInt
  SystemControlA
Include
GuruMeditation
Docs » Autodocs » lowlevel.library » GetKey

NAME

	GetKey -- returns the currently pressed rawkey code and qualifiers.
(V40)

SYNOPSIS

	key = GetKey();
D0
ULONG GetKey(VOID);

FUNCTION

	This function returns the currently pressed non-qualifier key and
all pressed qualifiers.
This function is safe within an interrupt.
This is a low level function that does not fit the normal Amiga
multitasking model. The values returned by this function are
not modified by which window/screen currently has input focus.

RESULT

	key - key code for the last non-qualifier key pressed in the low
order word. If no key is pressed this word will be FF. The
upper order word contains the qualifiers which can be found
within the long word as follows:
Qualifier Key
LLKB_LSHIFT Left Shift
LLKB_RSHIFT Rigt Shift
LLKB_CAPSLOCK Caps Lock
LLKB_CONTROL Control
LLKB_LALT Left Alt
LLKB_RALT Right Alt
LLKB_LAMIGA Left Amiga
LLKB_RAMIGA Right Amiga

SEE ALSO

<libraries/lowlevel.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Rebels

TBL
AFL
RBS
DJ

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se