Bug #8212

displayAddEventHandler 'MouseButtonDown' with return true, still executes mouse action

Added by kju over 7 years ago. Updated 10 months ago.

Status:Assigned Start date:01/16/2010
Priority:Normal Due date:04/01/2012
Assignee:Dwarden % Done:

0%

Category:Scripting: Problem
Target version:1.63 BETA
Affected ArmA II version:1.62.95248 First affected build:
Reproduced by another DH user:No First affected ArmA II version:
I am using some Mods:No Single / Multi Player?:
I am using:OA only BIForumURL:
Reproducible for you:Yes NGUrl:
Related to content of DLC: WIKIurl:

Description

Obs

DisplayAddEventHandler 'MouseButtonDown' with return true, still executes mouse action.

Exp

Like for 'displayAddEventHandler ["KeyDown","true;"]; the actual action should not be executed if code returns true.

Ref: http://community.bistudio.com/wiki/displayAddEventHandler

Repro

  1. load mission in the editor (utes)
  2. on radio 0-0-1 add DEH 'MouseButtonDown' that returns always true.
  3. press any mouse button
  4. notice hint confirmation that its active
  5. notice mouse actions like fire (LMB), zoom (RMB) or anything else assigned will be executed as normal

Or execute:
1 waitUntil {not(isNull (findDisplay 46))}; (findDisplay 46) displayAddEventHandler ["MouseButtonDown", "true;"];

CIT_MouseButtonDownTrue_Broken.utes.7z (959 Bytes) kju, 01/16/2010 21:48

CIT_MouseButtonDownTrue_Broken.Desert_E.7z (990 Bytes) kju, 07/17/2010 15:59


Related issues

related to ARMA2 Community Issue Tracker - Feature #29130: Add new scripting command: disableKeyAction Assigned 03/03/2012
related to ARMA2 Community Issue Tracker - Feature #39880: Add onJoystickButtonDown and onJoystickButtonUp UI event ... Assigned 08/03/2012

History

Updated by kju almost 7 years ago

  • File CIT_MouseButtonDownTrue_Broken.Desert_E.7z added
  • Due date changed from 04/16/2010 to 10/01/2010
  • Affected ArmA II version changed from 1.05.62017 to 1.53 BETA
  • Audio card set to Please specify!
  • Size of OS swap file set to Please specify!
  • I am using some Mods set to No
  • I am using set to OA only
  • Reproducible for you set to Yes

Updated by kju over 6 years ago

  • Due date changed from 10/01/2010 to 03/01/2011
  • Operating system deleted (WinXP 32 bit)
  • Affected ArmA II version changed from 1.53 BETA to 1.57.76815

Updated by kju almost 6 years ago

  • Due date changed from 03/01/2011 to 12/01/2011
  • Affected ArmA II version changed from 1.57.76815 to 1.60 BETA
  • CPU deleted (n/a)
  • Audio card deleted (Please specify!)
  • Size of OS swap file deleted (Please specify!)

Updated by kju over 5 years ago

  • Due date changed from 12/01/2011 to 04/01/2012
  • Affected ArmA II version changed from 1.60 BETA to 1.61 Beta

Updated by Dwarden over 5 years ago

  • Target version set to 1.61 BETA

Updated by kju almost 5 years ago

  • Target version changed from 1.61 BETA to 1.63 BETA

Updated by kju almost 5 years ago

  • Affected ArmA II version changed from 1.61 Beta to 1.62.95248

Updated by dslyecxi over 4 years ago

This also applies to the mousewheel - you can't prevent it from bringing up the action menu.

Also available in: Atom PDF