Ceci est une version archivée de
Kbshift() à 2006-01-31 22:44:01.
(
Key
board
shift)
LONG Mediach( mode )
WORD mode;
Kbshift() is used to read or set the state of some special keys.
Opcode
11 (0x0b)
Availability
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