Page MenuHomeFeedback Tracker

Joystick bound to keys cannot be detected with UI Event Handlers [VIDEO]
New, WishlistPublic

Description

If you bind joystick buttons directly to keys, none of the UI event handlers will fire when joystick button are pressed:

http://www.youtube.com/watch?v=6FNvO8IzNoI

Details

Legacy ID
1297558645
Severity
None
Resolution
Open
Reproducibility
Always
Category
Controls
Steps To Reproduce

install driver for Playstation dualshock 3: http://killzonekid.com/how-to-make-dualshock-3-controller-work-on-pc/

Bind fire to R1 and reload to circle

Add 3 event handlers:

findDisplay 46 displayAddEventHandler ["KeyDown", {hint str ["key", _this]; false}];
findDisplay 46 displayAddEventHandler ["MouseButtonDown", {hint str ["mouse", _this]}];
findDisplay 46 displayAddEventHandler ["JoystickButton", {hint str ["joystick", _this]}];

execute

fire and reload with joystick, no event handlers are firing.

In Arma 2 on the other hand, KeyDown EH is firing with this setup.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Controls.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 1297558645.May 7 2016, 6:54 PM
Killzone_Kid added a subscriber: Killzone_Kid.

findDisplay 46 displayAddEventHandler ["JoystickButton", {hint str ["joystick", _this]}];

Huh! There is also no "JoystickButton" event handler in A3, great!

Sorry, the video was private instead of unlisted for some reason