Blender V5.0
GWL_SeatStatePointerScroll Struct Reference

Public Attributes

wl_fixed_t smooth_xy [2] = {0, 0}
int32_t discrete_xy [2] = {0, 0}
int32_t discrete120_xy [2] = {0, 0}
int32_t discrete120_xy_accum [2] = {0, 0}
bool inverted_xy [2] = {false, false}
enum wl_pointer_axis_source axis_source = WL_POINTER_AXIS_SOURCE_WHEEL
bool has_event_ms = false
uint64_t event_ms = 0
GWL_SeatStatePointerScroll_SmoothAsDiscrete smooth_as_discrete

Detailed Description

Scroll state, applying to pointer (not tablet) events. Otherwise this would be part of GWL_SeatStatePointer.

Definition at line 837 of file GHOST_SystemWayland.cc.

Member Data Documentation

◆ axis_source

enum wl_pointer_axis_source GWL_SeatStatePointerScroll::axis_source = WL_POINTER_AXIS_SOURCE_WHEEL

The source of scroll event.

Definition at line 849 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_axis_source(), and pointer_handle_frame().

◆ discrete120_xy

int32_t GWL_SeatStatePointerScroll::discrete120_xy[2] = {0, 0}

Discrete scrolling, v8 of the seat API (handled & reset with pointer "frame" callback).

Definition at line 843 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_axis_value120(), and pointer_handle_frame().

◆ discrete120_xy_accum

int32_t GWL_SeatStatePointerScroll::discrete120_xy_accum[2] = {0, 0}

Accumulated value from discrete120_xy, not reset between "frame" callbacks.

Definition at line 845 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_frame().

◆ discrete_xy

int32_t GWL_SeatStatePointerScroll::discrete_xy[2] = {0, 0}

Discrete scrolling (handled & reset with pointer "frame" callback).

Definition at line 841 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_axis_discrete(), and pointer_handle_frame().

◆ event_ms

uint64_t GWL_SeatStatePointerScroll::event_ms = 0

Event time-stamp.

Definition at line 857 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_axis(), pointer_handle_axis_stop(), and pointer_handle_frame().

◆ has_event_ms

bool GWL_SeatStatePointerScroll::has_event_ms = false

While the time should always be available, not all callbacks set the time so account for it not being set.

Definition at line 855 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_axis(), pointer_handle_axis_stop(), and pointer_handle_frame().

◆ inverted_xy

bool GWL_SeatStatePointerScroll::inverted_xy[2] = {false, false}

True when the axis is inverted (also known is "natural" scrolling).

Definition at line 847 of file GHOST_SystemWayland.cc.

Referenced by pointer_handle_frame().

◆ smooth_as_discrete

◆ smooth_xy

wl_fixed_t GWL_SeatStatePointerScroll::smooth_xy[2] = {0, 0}

Smooth scrolling (handled & reset with pointer "frame" callback).

Definition at line 839 of file GHOST_SystemWayland.cc.

Referenced by gwl_seat_capability_pointer_multitouch_disable(), pointer_handle_axis(), and pointer_handle_frame().


The documentation for this struct was generated from the following file: