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

Event that is triggered when a mouse button is pressed, holds the button that was pressed. More...

#include <mouse.h>

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

Public Member Functions

 MouseDownEvent (uint8_t)
 Constructor for the MouseDownEvent class.
 
- Public Member Functions inherited from MaxOS::common::Event< MouseEvents >
 Event (MouseEvents type)
 Constructs a new Event object.
 

Public Attributes

uint8_t button
 The button that was pressed.
 
- 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 a mouse button is pressed, holds the button that was pressed.

Definition at line 50 of file mouse.h.

Constructor & Destructor Documentation

◆ MouseDownEvent()

MouseDownEvent::MouseDownEvent ( uint8_t  button)
explicit

Constructor for the MouseDownEvent class.

Parameters
buttonThe button that was pressed

Definition at line 177 of file mouse.cpp.

178 : Event<MouseEvents>(MouseEvents::DOWN),
179 button(button) {
180}
Stores the left, top, width and height of a rectangle.
Definition rectangle.h:22
uint8_t button
The button that was pressed.
Definition mouse.h:52

Member Data Documentation

◆ button

uint8_t MaxOS::drivers::peripherals::MouseDownEvent::button

The button that was pressed.

Definition at line 52 of file mouse.h.


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