- List of Events
- Core
- Crafty
- Crafty Core
- Crafty.bind()
- Crafty.c()
- Crafty.clone()
- Crafty.defineField()
- Crafty.e()
- Crafty.extend()
- Crafty.frame()
- Crafty.getVersion()
- Crafty.init()
- Crafty.isPaused()
- Crafty.one()
- Crafty.pause()
- Crafty.s()
- Crafty.settings
- Crafty.stage
- Crafty.stop()
- Crafty.support
- Crafty.trigger()
- Crafty.unbind()
- Crafty.uniqueBind()
- 2D
- Animation
- Assets
- Audio
- Controls
- Debug
- Events
- Game Loop
- Graphics
- Input
- Misc
- Model
- Scenes
- Stage
- Utilities
Crafty.mouseButtons
An object mapping mouseButton names to the corresponding button ID.
In all mouseEvents, we add the e.mouseButton
property with a value normalized to match e.button of modern webkit browsers:
LEFT: 0,
MIDDLE: 1,
RIGHT: 2