Max OS 0.3
Loading...
Searching...
No Matches
mouse.h File Reference

Defines a MouseDriver for handling PS/2 mouse input and generating mouse events. More...

#include <cstdint>
#include <common/vector.h>
#include <common/string.h>
#include <common/eventHandler.h>
#include <hardwarecommunication/interrupts.h>
#include <hardwarecommunication/port.h>
#include <drivers/driver.h>

Go to the source code of this file.

Classes

class  MaxOS::drivers::peripherals::MouseMoveEvent
 Event that is triggered when the mouse moves, holds the x and y coordinates. More...
 
class  MaxOS::drivers::peripherals::MouseDownEvent
 Event that is triggered when a mouse button is pressed, holds the button that was pressed. More...
 
class  MaxOS::drivers::peripherals::MouseUpEvent
 Event that is triggered when a mouse button is released, holds the button that was released. More...
 
class  MaxOS::drivers::peripherals::MouseEventHandler
 Handles events that are triggered by the mouse driver. More...
 
class  MaxOS::drivers::peripherals::MouseDriver
 Driver for the PS/2 mouse, manages the mouse and triggers events when the mouse moves or a button is pressed. More...
 

Enumerations

enum class  MaxOS::drivers::peripherals::MouseEvents { MOVE , DOWN , UP }
 The different types of mouse events that can be triggered. More...
 

Detailed Description

Defines a MouseDriver for handling PS/2 mouse input and generating mouse events.

Date
10th October 2022
Author
Max Tyson

Definition in file mouse.h.

Enumeration Type Documentation

◆ MouseEvents

The different types of mouse events that can be triggered.

Definition at line 28 of file mouse.h.

28 {
29 MOVE,
30 DOWN,
31 UP
32 };