ESP32 VGA Controller and Graphics Library
fabgl::MouseDelta Struct Reference

Describes mouse movement and buttons status. More...

#include <mouse.h>

Collaboration diagram for fabgl::MouseDelta:

Public Attributes

MouseButtons buttons
int16_t deltaX
int16_t deltaY
int8_t deltaZ
uint8_t overflowX: 1
uint8_t overflowY: 1

Detailed Description

Describes mouse movement and buttons status.

Member Data Documentation

◆ buttons

MouseButtons fabgl::MouseDelta::buttons

Mouse buttons status.

◆ deltaX

int16_t fabgl::MouseDelta::deltaX

Horizontal movement since last report. Moving to the right generates positive values.

◆ deltaY

int16_t fabgl::MouseDelta::deltaY

Vertical movement since last report. Upward movement generates positive values.

◆ deltaZ

int8_t fabgl::MouseDelta::deltaZ

Scroll wheel movement since last report. Downward movement genrates positive values.

◆ overflowX

uint8_t fabgl::MouseDelta::overflowX

Contains 1 when horizontal overflow has been detected.

◆ overflowY

uint8_t fabgl::MouseDelta::overflowY

Contains 1 when vertical overflow has been detected.

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