mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed value bounds for the redefined key code value in HOOK_KEYPRESS
Minor code & document edits.
This commit is contained in:
+2
-2
@@ -159,9 +159,9 @@ ScrollMod=0
|
||||
MouseSensitivity=100
|
||||
|
||||
;DX scancode of a key to press when the middle mouse button is clicked
|
||||
;The default of 0x30 toggles between your two weapons
|
||||
;The default of 48 ('B' key) toggles between your active items
|
||||
;Set to 0 to disable
|
||||
MiddleMouse=0x30
|
||||
MiddleMouse=48
|
||||
|
||||
;Set to 1 to reverse the left and right mouse buttons
|
||||
ReverseMouseButtons=0
|
||||
|
||||
@@ -406,7 +406,7 @@ int ret0 - The new amount of ammo to be consumed, or ammo cost per round for
|
||||
#### `HOOK_KEYPRESS (hs_keypress.int)`
|
||||
|
||||
Runs once every time when any key was pressed or released.
|
||||
- DX codes: (see **dik.h** header)
|
||||
- DX codes: see **dik.h** header or https://kippykip.com/b3ddocs/commands/scancodes.htm
|
||||
- VK codes: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx
|
||||
|
||||
__NOTE:__ if you want to override a key, the new key DX scancode should be the same for both pressed and released events.
|
||||
|
||||
Reference in New Issue
Block a user