A simple js mouse interface
TODO
{
"fixX":int, // 'fixed' x (offset inside viewport)
"fixY":int, // 'fixed' y (offset inside viewport)
"absX":int, // 'absolute' x (offset inside page)
"absY":int, // 'absolute' y (offset inside page)
"relX":int, // 'relative' x (offset inside elem)
"relY":int, // 'relative' y (offset inside elem)
"keys":{
"alt":bool, // Was alt pressed
"ctrl":bool, // Was ctrl pressed
"shift":bool // Was shift pressed
},
"target":<DOM> // DOM element
}
- true - blocks context menu
- false - unblocks context menu
- null - toggles context menu blocking
- 'button'
- mouseDown
- mouseUp
- mouseClick
- leftDown
- leftUp
- leftClick
- middleDown
- middleUp
- middleClick
- rightDown
- rightUp
- rightClick
- 'velocity'
- scroll
- scrollDown
- scrollUp
- move
- enter
- leave
- arrive
- depart