IsRawKeyPressed
клиент IS_RAW_KEY_PRESSED
c
BOOL IS_RAW_KEY_PRESSED(int rawKeyIndex);Gets if the specified rawKeyIndex is pressed on the keyboard.
This will not be triggered if the key is disabled with DISABLE_RAW_KEY_THIS_FRAME
Virtual key codes can be found here
Параметры
- rawKeyIndex: Index of raw key from keyboard.
Возвращает
Returns bool value of pressed state.
Примеры
lua
if IsRawKeyPressed(32) then -- KEY_SPACE
print("Spacebar pressed")
endСтраница собрана автоматически из native-decls/IsRawKeyPressed.md. Нашли ошибку — поправьте исходный файл.