ソースを参照

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 7年前
コミット
6167e610f1
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      app/js/ui/Input.js

+ 4
- 0
app/js/ui/Input.js ファイルの表示

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,

読み込み中…
キャンセル
保存