Page MenuHomeFeedback Tracker

displayAddEventHandler "MouseMoving" return nonsense values
New, WishlistPublic

Description

Trying to get mouse cursor position on map, but using displayAddEventHandler "MouseMoving" gives very strange values (some kind speed or acceleration values?) - "Returns the display, the some kind of x and y delta position."
https://community.bistudio.com/wiki/User_Interface_Event_Handlers

Cant find a way to convert the returned values to anything usefull to get mouse position.

Details

Legacy ID
3741239488
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

(findDisplay 12) displayCtrl 51 displayAddEventHandler ["MouseMoving","hint str _this;"];

Additional Information

Have also tried to use ctrlAddEventHandler "MouseMoving" but it dosent work for RscFrame and other similar background boxes. Works only e.g. for lists and buttons.

Similar issue also with onMouseEnter and onMouseExit.

Event Timeline

SaOk edited Steps To Reproduce. (Show Details)Mar 27 2015, 8:55 PM
SaOk edited Additional Information. (Show Details)
SaOk set Category to Scripting.
SaOk set Reproducibility to Always.
SaOk set Severity to None.
SaOk set Resolution to Open.
SaOk set Legacy ID to 3741239488.May 8 2016, 11:45 AM