Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::drivers::peripherals::MouseMoveEvent Class Reference

Event that is triggered when the mouse moves, holds the x and y coordinates. More...

#include <mouse.h>

Inheritance diagram for MaxOS::drivers::peripherals::MouseMoveEvent:
MaxOS::common::Event< MouseEvents >

Public Member Functions

 MouseMoveEvent (int8_t x, int8_t y)
 Constructor for the MouseMoveEvent class.
 
- Public Member Functions inherited from MaxOS::common::Event< MouseEvents >
 Event (MouseEvents type)
 Constructs a new Event object.
 

Public Attributes

int8_t x
 The x coordinate of the mouse.
 
int8_t y
 The y coordinate of the mouse.
 
- Public Attributes inherited from MaxOS::common::Event< MouseEvents >
MouseEvents type
 
uint8_tbuffer_value
 
uint32_t int_value
 
bool bool_value
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

Event that is triggered when the mouse moves, holds the x and y coordinates.

Definition at line 38 of file mouse.h.

Constructor & Destructor Documentation

◆ MouseMoveEvent()

MouseMoveEvent::MouseMoveEvent ( int8_t  x,
int8_t  y 
)

Constructor for the MouseMoveEvent class.

Parameters
xThe amount the mouse moved in the x direction
yThe amount the mouse moved in the y direction

Definition at line 190 of file mouse.cpp.

191 : Event<MouseEvents>(MouseEvents::MOVE),
192 x(x),
193 y(y) {
194}
Stores the left, top, width and height of a rectangle.
Definition rectangle.h:22
int8_t x
The x coordinate of the mouse.
Definition mouse.h:40
int8_t y
The y coordinate of the mouse.
Definition mouse.h:41

Member Data Documentation

◆ x

int8_t MaxOS::drivers::peripherals::MouseMoveEvent::x

The x coordinate of the mouse.

Definition at line 40 of file mouse.h.

◆ y

int8_t MaxOS::drivers::peripherals::MouseMoveEvent::y

The y coordinate of the mouse.

Definition at line 41 of file mouse.h.


The documentation for this class was generated from the following files: