#include <basics.h>
#include <stdbool.h>
#include <hal.h>
#include <debugger.h>
#include <opengl/glbackend.h>
#include <isr.h>
Go to the source code of this file.
|
| typedef void(* | MouseMovementHandler) (int64_t xRel, int64_t yRel) |
| | Type definition for mouse movement handler functions.
|
| typedef void(* | MouseButtonHandler) (uint8_t button, uint8_t action) |
| | Type definition for mouse button handler functions.
|
|
|
const bool | mouse_cursor [] |
- Author
- Pradosh (prado.nosp@m.shga.nosp@m.me@gm.nosp@m.ail..nosp@m.com)
- Version
- 0.1
- Date
- 2023-12-22
- Copyright
- Copyright (c) Pradosh 2023
Definition in file ps2-mouse.h.
◆ MOUSE_BUTTON_LEFT
| #define MOUSE_BUTTON_LEFT PS2_left_button |
◆ MOUSE_BUTTON_MIDDLE
| #define MOUSE_BUTTON_MIDDLE PS2_middle_button |
◆ MOUSE_BUTTON_PRESS
| #define MOUSE_BUTTON_PRESS 1 |
◆ MOUSE_BUTTON_RELEASE
| #define MOUSE_BUTTON_RELEASE 0 |
◆ MOUSE_BUTTON_RIGHT
| #define MOUSE_BUTTON_RIGHT PS2_right_button |
◆ PS2_left_button
| #define PS2_left_button 0b00000001 |
◆ PS2_middle_button
| #define PS2_middle_button 0b00000100 |
◆ PS2_right_button
| #define PS2_right_button 0b00000010 |
◆ PS2_x
◆ PS2_x_overflow
| #define PS2_x_overflow 0b01000000 |
◆ PS2_y
◆ PS2_y_overflow
| #define PS2_y_overflow 0b10000000 |
◆ MouseButtonHandler
| typedef void(* MouseButtonHandler) (uint8_t button, uint8_t action) |
Type definition for mouse button handler functions.
Definition at line 45 of file ps2-mouse.h.
◆ MouseMovementHandler
| typedef void(* MouseMovementHandler) (int64_t xRel, int64_t yRel) |
Type definition for mouse movement handler functions.
Definition at line 40 of file ps2-mouse.h.
◆ GetLastMousePosition()
| ivec2 GetLastMousePosition |
( |
| ) |
|
◆ GetMousePosition()
| ivec2 GetMousePosition |
( |
| ) |
|
◆ process_mouse()
Handles the mouse's.
- Parameters
-
◆ SetMouseButtonHandler()
◆ SetMouseMovementHandler()