DisableRawKeyThisFrame
Docslocal retval = DisableRawKeyThisFrame(rawKeyIndex)Description
Disables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_* natives.
Virtual key codes can be found here
Parameters
| Name | Type | Description |
|---|---|---|
rawKeyIndex | int | Index of raw key from keyboard. |
Returns
BOOLReturns TRUE (1) or FALSE (0).
Examples
Official
local KEY_SPACE = 32
DisableRawKeyThisFrame(KEY_SPACE)
-- This will not get triggered this frame
if IsRawKeyDown(KEY_SPACE) then
print("unreachable :(")
end
-- this will get triggered
if IsDisabledRawKeyDown(KEY_SPACE) then
print("Spacebar is down")
end