Difference between revisions of "IsKeyPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(OBSE)
 
imported>Cid88
Line 8: Line 8:
==Sample Key IDs==
==Sample Key IDs==
<pre>
<pre>
1  Left Mouse Button
32  spacebar
32  spacebar
48  0
48  0

Revision as of 10:42, 25 July 2006

A command for Oblivion Script Extender

Syntax:

IsKeyPressed key

Returns true if key is currently pressed down. Key values are stored in Windows header files.

Sample Key IDs

1   Left Mouse Button
32  spacebar
48  0
...
57  9
65  A
...
90  Z
160 left shift
161 right shift
162 left control
163 right control

A longer list can be found here