IS_USING_KEYBOARD_AND_MOUSE
Returns true if the last input for control came from a keyboard and mouse rather than a gamepad.
Signature
BOOL IS_USING_KEYBOARD_AND_MOUSE(int control); // 0xA571D46727E2B718 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | control | int |
Facts
| Name | IS_USING_KEYBOARD_AND_MOUSE |
|---|---|
| Hash | 0xA571D46727E2B718 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xA571D46727E2B718, -- IS_USING_KEYBOARD_AND_MOUSE
0 -- int control
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xA571D46727E2B718", // IS_USING_KEYBOARD_AND_MOUSE
0, // int control
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA571D46727E2B718, // IS_USING_KEYBOARD_AND_MOUSE
0 // int control
);Related PAD natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.