Browse Source

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 years ago
parent
commit
6167e610f1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/js/ui/Input.js

+ 4
- 0
app/js/ui/Input.js View File

var ename = MouseEventName("mousemove"); var ename = MouseEventName("mousemove");
var data = { var data = {
source: this, source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX, lastX: pos.lastX,
lastY: pos.lastY, lastY: pos.lastY,
x: pos.x, x: pos.x,
var ename = MouseEventName(); var ename = MouseEventName();
var data = { var data = {
source: this, source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX, lastX: pos.lastX,
lastY: pos.lastY, lastY: pos.lastY,
x: pos.x, x: pos.x,
this.__mouseLastAction = "mouseup"; this.__mouseLastAction = "mouseup";
var data = { var data = {
source: this, source: this,
isCombo: false,
lastX: pos.lastX, lastX: pos.lastX,
lastY: pos.lastY, lastY: pos.lastY,
x: pos.x, x: pos.x,
var ename = MouseEventName("wheel"); var ename = MouseEventName("wheel");
var data = { var data = {
source: this, source: this,
isCombo: (ename.indexOf("+") >= 0),
lastX: pos.lastX, lastX: pos.lastX,
lastY: pos.lastY, lastY: pos.lastY,
x: pos.x, x: pos.x,

Loading…
Cancel
Save