WikiPendium

(beta)

Kbshift()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-88-16-192.compute-1.amazonaws.com

Kbshift()

(Keyboard shift)

LONG Kbshift( mode )

WORD mode;

Kbshift() is used to read or set the state of some special keys.

Opcode

11 (0x0b)

Availability

All TOS versions.

Parameters

mode is -1 to read current keyboard state, or a bitmask of the following values to set a new state:

Name Value Meaning
K_RSHIFT 0x01 Right shift key
K_LSHIFT 0x02 Left shift key
K_CTRL 0x04 Control key
K_ALT 0x08 Alt key
K_CAPSLOCK 0x10 Caps lock enabled
K_CLRHOME 0x20 Clear/home key
K_INSERT 0x40 Insert key

Binding

	move.w	#mode,-(sp)
	move.w	#11,-(sp)
	trap	#13
	addq.l	#4,sp


Return Value

The return value is a bitmask of the state of the keys before calling the functions.

See also

Bconin()

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