Module Ev.Mouse
Mouse events.
type t
The type for
MouseEvent
objects.
related_target e
is the target the pointer is entering (if any).
Position
val offset_x : t -> float
offset_x m
is the horizontal coordinate in target space.
val offset_y : t -> float
offset_y m
is the vertical coordinate in target space.
val client_x : t -> float
client_x m
is the horizontal coordinate in window viewport space.
val client_y : t -> float
client_y m
is the vertical coordinate in window viewport space.
val page_x : t -> float
page_x m
is the horizontal coordinate in document space.
val page_y : t -> float
page_y m
is the vertical coordinate in document space.
val screen_x : t -> float
screen_x m
is the horizontal coordinate in screen space.
val screen_y : t -> float
screen_y m
is the vertical coordinate in screen space.
Buttons
Keyboard
val alt_key : t -> bool
alt_key m
istrue
ifAlt
modifier is active.
val ctrl_key : t -> bool
ctrl_key m
istrue
ifControl
modifier is active.
val shift_key : t -> bool
shift_key m
istrue
ifShift
modifier is active.
val meta_key : t -> bool
meta_key m
istrue
ifMeta
modifier is active.