ControlsClient

isUsingKeyboardAndMouse

IS_USING_KEYBOARD_AND_MOUSE0xA571D46727E2B718

The GTA V native IS_USING_KEYBOARD_AND_MOUSE of the PAD namespace, as LS:MP client scripts call it: the global function isUsingKeyboardAndMouse, in JavaScript and in Lua.

SignatureJavaScript
isUsingKeyboardAndMouse(control: number): boolean
SignatureLua
isUsingKeyboardAndMouse(control: integer): boolean

Usage

JavaScript
const result = isUsingKeyboardAndMouse(control);
Lua
local result = isUsingKeyboardAndMouse(control)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegerunused parameter

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Controls PAD
In the game
BOOL IS_USING_KEYBOARD_AND_MOUSE(int control)
Hash
0xA571D46727E2B718
Formerly
_GET_LAST_INPUT_METHOD _IS_INPUT_DISABLED _IS_USING_KEYBOARD

Open in the interactive natives reference