Event.PointerEvents from mice, touchpads, etc.
type ty = [ | `Pointer_motion of [ `Pointer_motion ] t| `Pointer_motion_absolute of [ `Pointer_motion_absolute ] t| `Pointer_axis of [ `Pointer_axis ] tDeprecated; use the scroll events below instead.
*)| `Pointer_scroll_wheel of [ `Pointer_scroll_wheel ] t| `Pointer_scroll_finger of [ `Pointer_scroll_finger ] t| `Pointer_scroll_continuous of [ `Pointer_scroll_continuous ] t ]val get_button_state : [ `Pointer_button ] t -> [ `Released | `Pressed ]val get_seat_button_count : [ `Pointer_button ] t -> intval get_dx : [ `Pointer_motion ] t -> floatval get_dy : [ `Pointer_motion ] t -> floatval get_dx_unaccelerated : [ `Pointer_motion ] t -> floatval get_dy_unaccelerated : [ `Pointer_motion ] t -> floatval get_absolute_x : [ `Pointer_motion_absolute ] t -> floatval get_absolute_y : [ `Pointer_motion_absolute ] t -> floatval get_absolute_x_transformed :
[ `Pointer_motion_absolute ] t ->
width:int ->
floatval get_absolute_y_transformed :
[ `Pointer_motion_absolute ] t ->
height:int ->
floatval get_time : [< any ] t -> Timestamp.tval has_axis :
[< `Pointer_scroll_wheel
| `Pointer_scroll_finger
| `Pointer_scroll_continuous ]
t ->
[ `Scroll_vertical | `Scroll_horizontal ] ->
boolval get_scroll_value :
[< `Pointer_scroll_wheel
| `Pointer_scroll_finger
| `Pointer_scroll_continuous ]
t ->
[ `Scroll_vertical | `Scroll_horizontal ] ->
float optionFor scroll wheels, using get_scroll_value_v120 is preferred.
val get_scroll_value_v120 :
[ `Pointer_scroll_wheel ] t ->
[ `Scroll_vertical | `Scroll_horizontal ] ->
float optionHigh-resolution scroll events, normalized to the -120..+120 range.
e.g. +/- 120 represents one logical click of the wheel.