Difference between revisions of "DisableKey"

Jump to navigation Jump to search
327 bytes added ,  11:45, 4 April 2009
→‎Notes: Cannot disable notes
imported>Skyranger-1
m
imported>Haama
(→‎Notes: Cannot disable notes)
 
*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]].
*The console key ("~"), scancodeEsc, 41)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}}
 
Anonymous user

Navigation menu