VX++ Framework (VxCpp.dll)
Friendly Voxon development with classes
Public Attributes | List of all members
voxie_input_t Struct Reference

Struct to manage mouse inputs. Mouse state is updated when VoxieBox::breath() is called.
More...

#include <vxDataTypes.h>

Public Attributes

int bstat
 buttonstate for mouse buttons 0 = no buttons pressed, 1 = left mouse button pressed, 2 = right mouse button pressed, 3 = both left and right button pressed. More...
 
int obstat
 the previous button state compare this value to the current bstat to do your own 'On Down' or 'On Up' calls or use VoxieBox::getMouseClickOnDown & VoxieBox::getMouseClickOnUp
 
int dmousx
 delta X movement from mouse
 
int dmousy
 delta Y movement from mouse
 
int dmousz
 delta Z movement from mouse (scroll wheel)
 

Detailed Description

Struct to manage mouse inputs. Mouse state is updated when VoxieBox::breath() is called.

mouse and keyboard input are managed by VoxieBox class there are many function calls which can be used to interact with the mouse (and keyboard)

See also
VoxieBox to see them all.
for convenience VoxieBox privately tracks the mousePosition
VoxieBox::getMousePosition() as the voxie_input_t just tracks movements use
VoxieBox::reportMouse to see a live report

Member Data Documentation

◆ bstat

int voxie_input_t::bstat

buttonstate for mouse buttons 0 = no buttons pressed, 1 = left mouse button pressed, 2 = right mouse button pressed, 3 = both left and right button pressed.

See also
VoxieBox::getMouseButtonState
VoxieBox::getMouseClickOnDown

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