The "KeyDown" event from displayAddEventHandler provides the ability to override (block) keypresses when true is returned by the event handler code. This feature would be extremely useful to override input actions directly via addUserActionEventHandler, especially those activated with multi-key bindings, for which the "KeyDown" display event cannot be relied upon.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- Won't Fix
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Event Timeline
Comment Actions
That's highly unfortunate. This would have been way cleaner than the findDisplay 46 displayAddEventHandler ["KeyDown", {condition}] stuff that is required to override user input in vanilla missions.
Comment Actions
That wouldn't make sense, there's way worse than that. The most likely reason is difficulty of implementation. In an ideal world, this feature should've already been available back in ARMA 2 alongside displayAddEventHandler... I am actually quite baffled that addUserActionEventHandler was added without override, since it would easily become its primary use-case.