RefreshControlMap
Revision as of 23:08, 27 April 2008 by imported>Scruggs (add note)
Deprecated from OBSE v0015: Input functions now always sync to Oblivion control bindings.
A command for Oblivion Script Extender
Syntax:
(nothing) RefreshControlMap
Re-parses the Oblivion.ini file to update OBSE's internal map of the player's controls. Call this function after the player exits the Controls menu (menumode 1021) to detect any changes to the control layout.
Example
short ResetKeys begin MenuMode 1021 ;Controls Menu set ResetKeys to 1 end begin MenuMode 1015 ;Options Menu if ResetKeys set ResetKeys to 0 RefreshControlMap endif end
This refreshes the control map whenever the player leaves the control menu.
Notes
- This function is necessary for any mod that uses GetControl, GetAltControl, or any of the other Control functions. These functions only work with the key assigned to the control when the game is first loaded. Once the player changes the control, they will continue using the original and won't work properly. Use this function to refresh the controls so the Control functions will work properly.
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