[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "DisableKey"
Jump to navigation
Jump to search
→Notes: Cannot disable notes
imported>Skyranger-1 m |
imported>Haama (→Notes: Cannot disable notes) |
||
Line 17: | Line 17: | ||
*As well as the normal DX scancodes, you can use the numbers 256 to 263 to stop mouse button presses, and also 264 and 265 for mouse wheel movement. | *As well as the normal DX scancodes, you can use the numbers 256 to 263 to stop mouse button presses, and also 264 and 265 for mouse wheel movement. | ||
*[[IsKeyPressed]] will still work with Disabled keys, but [[IsKeyPressed2]] will not, unless [[TapKey]], which does work, was used the previous frame. [[HoldKey]], [[HammerKey]], and [[AHammerKey]] will not function while the key is disabled, but will begin to function immediately after [[EnableKey]] is used if they are not turned off by their respective functions before then. Disabled mouse buttons will continue to be detected by [[IsKeyPressed2]]. | *[[IsKeyPressed]] will still work with Disabled keys, but [[IsKeyPressed2]] will not, unless [[TapKey]], which does work, was used the previous frame. [[HoldKey]], [[HammerKey]], and [[AHammerKey]] will not function while the key is disabled, but will begin to function immediately after [[EnableKey]] is used if they are not turned off by their respective functions before then. Disabled mouse buttons will continue to be detected by [[IsKeyPressed2]]. | ||
*The console key ( | *The console key (~), Esc, and Mouse wheel cannot be disabled. | ||
**You can effectively disable the mouse wheel by changing fVanityModeWheelMult to 0. Use the following code to save, change and restore its value: | |||
<pre>Set xSaveFloat to GetGameSetting fVanityModeWheelMult | |||
SetNumericGameSetting fVanityModeWheelMult 0 | |||
... | |||
SetNumericGameSetting fVanityModeWheelMult xSaveFloat</pre> | |||
{{DirectX Scancodes}} | {{DirectX Scancodes}} | ||