Info-Mac Archive Downloads: dev/db/a4d/ext/

Back to dev/db/a4d/ext/

ModKeys Ext (modifier-keys-ext.hqx)

Download modifier-keys-ext.hqx (2,064 KB)


From: SMTP%"ALLAN@otago.ac.nz" 30-JUL-1991 21:24:36.35
To: hagood@scri1.scri.fsu.edu
CC:
Subj: ModKeys Ext

Date: Wed, 31 Jul 91 13:09 GMT +1200
From: Allan Udy
Subject: ModKeys Ext
To: hagood@scri1.scri.fsu.edu
X-VMS-To: IN%"hagood@scri1.scri.fsu.edu"

Modkeys(Var1)
Var1 is of type Integer.
This external returns in Var1 the state of the 4 keyboard modifier keys when the external was called.
Be sure to initialize Var1 BEFORE using it in the external call!
256 - Command key down
512 - Shift key down
1024 - Caps lock key down
2048 - Option key down
(multiple keys will return additive results, eg. cmd+shift=256+512=768.)
To use, place in the During portion of the layout proc & call when you want to check the modifier keys.