DisableRawKeyThisFrame
клиент DISABLE_RAW_KEY_THIS_FRAME
c
BOOL DISABLE_RAW_KEY_THIS_FRAME(int rawKeyIndex);Disables the specified rawKeyIndex, making it not trigger the regular IS_RAW_KEY_* natives.
Virtual key codes can be found here
Параметры
- rawKeyIndex: Index of raw key from keyboard.
Возвращает
Returns bool value of down state.
Примеры
lua
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Страница собрана автоматически из native-decls/DisableRawKeyThisFrame.md. Нашли ошибку — поправьте исходный файл.