If you bind joystick buttons directly to keys, none of the UI event handlers will fire when joystick button are pressed:
Description
Description
Details
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
Comment Actions
findDisplay 46 displayAddEventHandler ["JoystickButton", {hint str ["joystick", _this]}];
Huh! There is also no "JoystickButton" event handler in A3, great!