flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [10/50] flex-asjs git commit: Added support for buttonDown (it only works for left button — is that right?)
Date Mon, 03 Jul 2017 13:35:04 GMT
Added support for buttonDown (it only works for left button — is that right?)


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0d56a397
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0d56a397
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0d56a397

Branch: refs/heads/develop
Commit: 0d56a39780493cbf3fbc4dbedd6c85adc8932728
Parents: 3396fa7
Author: Harbs <harbs@in-tools.com>
Authored: Mon Jun 19 10:08:28 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Mon Jun 19 10:08:28 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/events/BrowserEvent.as  | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d56a397/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
index 1237529..c84eb9f 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/BrowserEvent.as
@@ -499,5 +499,15 @@ package org.apache.flex.events
 		{
 			return wrappedEvent.type;
 		}
+
+		public function get buttonDown():Boolean
+		{
+			return wrappedEvent.event_.buttons == 1;
+		}
+
+		public function get buttons():int
+		{
+			return wrappedEvent.event_.buttons;
+		}
 	}
 }


Mime
View raw message