Phaser API Documentation

  Version: 
buttons: number

Description:

0: No button or un-initialized 1: Left button 2: Right button 4: Wheel button or middle button 8: 4th button (typically the "Browser Back" button) 16: 5th button (typically the "Browser Forward" button)

For a mouse configured for left-handed use, the button actions are reversed. In this case, the values are read from right to left.

Type:
number
Default: 0
Since: 3.0.0
Source: src/input/Pointer.js (Line 125)