Talk:DisableKey
Active discussions
Revision as of 13:28, 3 April 2009 by imported>QQuix (DisableKey not disabling the mouse wheel)
Does DisableKey just disable the controls for the player or does it also disable the TapKey function? --Mandrill 06:33, 14 August 2006 (EDT)
- Dragoon Wraith TALK 11:29, 14 August 2006 (EDT): Just the controls for the player, I believe.
- Pretty sure IsKeyPressed will still work, too. Could be wrong, though.
- Guess I should answer this one. If a key is disabled by DisableKey:
- IsKeyPressed will work normally
- TapKey will work normally
- IsKeyPressed2 will always return 0, unless TapKey was used the previous frame
- HoldKey and HammerKey will not work, but will take effect immediately if you use EnableKey before ReleaseKey/UnhammerKey
- Timeslip 13:24, 14 August 2006 (EDT)
- Guess I should answer this one. If a key is disabled by DisableKey:
- Dragoon Wraith TALK 23:22, 14 August 2006 (EDT): Thanks Timeslip! I'll update the article accordingly.
- IsKeyPressed2 continues to function for disabled mouse buttons. Scruggs 15:42, 20 February 2007 (EST)
- Dragoon Wraith TALK 23:22, 14 August 2006 (EDT): Thanks Timeslip! I'll update the article accordingly.
Not disabling the mouse wheelEdit
DisableKey does not seem to disable the mouse wheel (dxScanCodes 264-265). After using this function (script or console), the wheel still switches to 3dr person view and zooms.
I have found that changing fVanityModeWheelMult to 0 disables the wheel. The following code to save, change and restore its value is working for me:
Set xSaveFloat to GetGameSetting fVanityModeWheelMult SetNumericGameSetting fVanityModeWheelMult 0 ; <code> SetNumericGameSetting fVanityModeWheelMult xSaveFloat
QQuix 14:28, 3 April 2009 (EDT)