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 » QueryKeys

NAME

	QueryKeys -- return the states for a set of keys. (V40)

SYNOPSIS

	QueryKeys(queryArray, arraySize);
A0 D1
VOID QueryKeys(struct KeyQuery *, UBYTE);

FUNCTION

	Scans the keyboard to determine which of the rawkey codes
listed in the QueryArray are currently pressed. The state for each
key is returned in the array.
This function may be invoked from within an interrupt, but the size
of QueryArray should be kept as small as possible.
This is a low level function that does not fit the normal Amiga
multitasking model. The values returned have no knowledge
of which window/screen currently has input focus.

INPUTS

	queryArray - an array of KeyQuery structures. The kq_KeyCode fields
of these structures should be filled with the rawkey
codes you wish to query about. Upon return from this
function, the kq_Pressed field of these structures
will be set to TRUE if the associated key is down,
and FALSE if not.
arraySize - number of key code entries in queryArray

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:

Crystal

HZ
SCX
CSL
DJ

Comments:

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