浏览代码

Added some mouse button code/name mapping in Input.

dev-tmpl
Bryan Miller 6 年前
父节点
当前提交
615d171c65
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. +13
    -0
      app/js/ui/Input.js

+ 13
- 0
app/js/ui/Input.js 查看文件

"currentcodes":[] "currentcodes":[]
}; };



var MOUSEBYCODE = {
0: "mbl", // (M)ouse (B)utton (L)eft
1: "mbm", // (M)ouse (B)utton (M)iddle
2: "mbr" // (M)ouse (B)utton (R)ight
};

var MOUSEBYNAME = {
"mbl": 0,
"mbm": 1,
"mbr": 2
};

// TODO: Reeval this idea. // TODO: Reeval this idea.
const KEYPRESS_DELAY = 350; // Time in milliseconds. NOTE: May make this a variable in future. const KEYPRESS_DELAY = 350; // Time in milliseconds. NOTE: May make this a variable in future.
const MOUSECLICK_DELAY = 350; // Time in milliseconds. const MOUSECLICK_DELAY = 350; // Time in milliseconds.

正在加载...
取消
保存