Page MenuHomeFeedback Tracker

_This select x called through displayAddEventHandler KeyDown/Up returns <null>
Closed, ResolvedPublic

Description

What I do :
_nul = [_this] execVM "EventHandler.sqf" >> Executes correctly

EventHandler.sqf
KeyDownFunction = {
hint format["_this : %1\n_this select 1 : %2",_this,_this select 1];
};
_KeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", "[_this] call KeyDownFunction;"];

What I get :
Hint returns
_this : [Display #46,DikCode(46,32,whatever..),false,false,false]
_this select 1 : <null>

What I should get :
_this select 1 : DikCode(46,32,whatever..)

Tested on devbuild, still doing the same thing.
(I tried using CBA to execute the EH on a Man class, didn't work...)

Details

Legacy ID
1052699605
Severity
None
Resolution
Won't Fix
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Just use the attached sqf file anywhere (Man, vehicle, init.sqf, etc...)

Alternatively, the code in the description should work too.

Event Timeline

KiTooN edited Steps To Reproduce. (Show Details)Aug 23 2013, 6:10 PM
KiTooN edited Additional Information. (Show Details)
KiTooN set Category to Scripting.
KiTooN set Reproducibility to Always.
KiTooN set Severity to None.
KiTooN set Resolution to Won't Fix.
KiTooN set Legacy ID to 1052699605.May 7 2016, 4:12 PM
KiTooN added a subscriber: KiTooN.

Double-post, sorry