Page MenuHomeFeedback Tracker

Add ability to override user actions via addUserActionEventHandler
Closed, ResolvedPublic

Description

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.

Details

Severity
Feature
Resolution
Won't Fix
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

AgentRev created this task.Oct 22 2021, 7:11 AM
AgentRev updated the task description. (Show Details)
AgentRev updated the task description. (Show Details)
AgentRev updated the task description. (Show Details)Oct 22 2021, 7:13 AM
AgentRev updated the task description. (Show Details)
dedmen closed this task as Resolved.Oct 25 2021, 6:27 PM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

Won't do.

dedmen changed Resolution from Open to Won't Fix.Oct 25 2021, 6:28 PM

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.

I guess Dedmen fears abuse by script kiddies?

I guess Dedmen fears abuse by script kiddies?

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.