Difference between revisions of "IsControlPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Haama
(Created)
 
imported>Haama
(→‎See Also: New links)
Line 41: Line 41:


==See Also==
==See Also==
*[[DisableControl]]
*[[IsKeyPressed]]
*[[EnableControl]]
*[[IsKeyPressed2]]
*[[GetAltControl]]
*[[IsKeyPressed3]]
*[[GetControl]]
*[[OnKeyDown]]
*[[OnControlDown]]
*[[OnControlDown]]
*[[RefreshControlMap]]
*[[TapControl]]


[[Category: Functions]]
[[Category: Functions]]

Revision as of 15:29, 26 November 2007


A command for Oblivion Script Extender

Syntax:

(isPressed:bool) IsControlPressed whichControl:short

Returns 1 if either the key or mouse button assigned to the specified control code is currently pressed. Detects disabled keys.

Control IDs

Forward 0
Back 1
Slide Left 2
Slide Right 3
Attack 4
Activate 5
Block 6
Cast 7
Ready Weapon 8
Crouch/Sneak 9
Run 10
Always Run 11
Auto Move 12
Jump 13
Toggle POV 14
Menu Mode 15
Rest 16
Quick Menu 17
Quick1 18
Quick2 19
Quick3 20
Quick4 21
Quick5 22
Quick6 23
Quick7 24
Quick8 25
QuickSave 26
QuickLoad 27
Grab 28

See Also