Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_MOUSE_DATA Struct Reference

#include <mouse.h>

Data Fields

uint16_t buttons
 The bitmap of current button values (eg MOUSE_LEFT_BUTTON or MOUSE_RIGHT_BUTTON).
int16_t offsetx
 The X offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_X).
int16_t offsety
 The Y offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_Y).
int16_t offsetwheel
 The X offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_WHEEL).
uint16_t maximumx
 The maximum X value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_X, otherwise must be 0).
uint16_t maximumy
 The maximum Y value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_Y, otherwise must be 0).
uint16_t maximumwheel
 The maximum Wheel value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_WHEEL, otherwise must be 0).
uint16_t reserved
 Reserved field (Round structure to 16 bytes).

Field Documentation

◆ buttons

uint16_t buttons

The bitmap of current button values (eg MOUSE_LEFT_BUTTON or MOUSE_RIGHT_BUTTON).

◆ offsetx

int16_t offsetx

The X offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_X).

◆ offsety

int16_t offsety

The Y offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_Y).

◆ offsetwheel

int16_t offsetwheel

The X offset of the mouse pointer (May be negative, read as absolute if Buttons includes MOUSE_ABSOLUTE_WHEEL).

◆ maximumx

uint16_t maximumx

The maximum X value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_X, otherwise must be 0).

◆ maximumy

uint16_t maximumy

The maximum Y value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_Y, otherwise must be 0).

◆ maximumwheel

uint16_t maximumwheel

The maximum Wheel value of the mouse (Only applicable if Buttons includes MOUSE_ABSOLUTE_WHEEL, otherwise must be 0).

◆ reserved

uint16_t reserved

Reserved field (Round structure to 16 bytes).


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