Bladeren bron

Input mouse event data now includes the 'isCombo' parameter which will be true if the mouse event is part of a combo.

dev-tmpl
Bryan Miller 5 jaren geleden
bovenliggende
commit
6167e610f1
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. +4
    -0
      app/js/ui/Input.js

+ 4
- 0
app/js/ui/Input.js Bestand weergeven

@@ -474,6 +474,7 @@ export default class Input{
var ename = MouseEventName("mousemove");
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -503,6 +504,7 @@ export default class Input{
var ename = MouseEventName();
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -541,6 +543,7 @@ export default class Input{
this.__mouseLastAction = "mouseup";
var data = {
source: this,
isCombo: false,
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,
@@ -566,6 +569,7 @@ export default class Input{
var ename = MouseEventName("wheel");
var data = {
source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX,
lastY: pos.lastY,
x: pos.x,

Laden…
Annuleren
Opslaan