Mouse Click Event

Description

In BBj 23 and higher, this event indicates that the user user clicked the mouse button identified in the id field of the event template. If the Shift, Ctrl, Alt, or Cmd key was also pressed when the mouse button was double-clicked, it is identified in the flags field.

Mandatory/Optional

Optional

Event Mask Bit

$00000800$

Event Template

context:u(2),code:c(1),id:u(2),flags:u(1),x:u(2),y:u(2)

Field Description
context Current window
code k
id

Mouse button:

$00$ = Left

$01$ = Right

$02$ = Middle

flags

Key pressed:

$01$ = Shift

$02$ = Ctrl

$04$ = Alt

$08$ = Cmd (macOS)

x Horizontal pixel location of the mouse click.
y Vertical pixel location of the mouse click.

See Also

BBjClickEvent