SetControl

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(void) SetControl whichControl:short dxScanCode:long

Assigns a new key to the specified control. If the specified control already has a key assigned, the key mappings are swapped.


Input Control Codes

The following values are shorts that are used and/or returned by this function, as indicated by its Syntax. These values correspond to the listed control:

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