WikiPendium

(beta)

Keytbl()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-52-14-130-13.us-east-2.compute.amazonaws.com

Keytbl()


KEYTAB *Keytbl( normal, shift, caps )

UCHAR *normal;
UCHAR *shift;
UCHAR *caps;

Keytbl() purpose is to read and modify the tables used by the system to map a scancode (hardware position of a key on a keyboard) to an ASCII code.

Opcode

16 (0x10)

Availability

All TOS versions.

Parameters

normal is the mapping table used for an unshifted key.
shift is the mapping table used when any shift key si pressed.
caps is the mapping table used when caps lock is enabled.
Pass KT_NOCHANGE (-1) if you don't want to modify one of the tables.

Binding

	pea	caps
	pea	shift
	pea	normal
	move.w	#$10,-(sp)
	trap	#14
	lea	14(sp),sp


Return Value

Keytbl() returns a pointer to the KEYTAB structure.

See Also

Bioskeys()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]