Page MenuHomeFeedback Tracker

[Feature Request] New User Interface Event Handler: (on)JoystickButtonDown/(on)JoystickButtonUp
New, NormalPublic

Description

Description: Returns the display or control, and button pressed/released on an external joystick device; returning 'true' interrupts normal button function in 'onJoystickButtonDown', as in 'onKeyDown'-
( https://community.bistudio.com/wiki/User_Interface_Event_Handlers#onKeyDown )

Syntax: findDisplay 46 displayAddEventHandler ["JoystickButtonUp", "hint str _this;"];
Syntax2: findDisplay 46 displayAddEventHandler ["JoystickButtonDown", if(_this select 2 == 3) then {true}];

Returns: Array

displayOrControl: Display/Control
deviceIndex: Number- Indexed number of the Joystick device (support for multiple joystick devices);
buttonNumber: Number- Number corresponding to the affected button.

Reasoning: Enables ability for scripts to use joystick buttons as keybinds, for custom keybinds, as in CBA.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting

Event Timeline

LLukeL created this task.Jun 18 2020, 2:47 AM
This comment was removed by BIS_fnc_KK.