16#include <opengl/glbackend.h>
20#define PS2_left_button 0x01U
21#define PS2_middle_button 0x04U
22#define PS2_right_button 0x02U
25#define PS2_x_overflow 0x40U
26#define PS2_y_overflow 0x80U
28#define MOUSE_BUTTON_LEFT PS2_left_button
29#define MOUSE_BUTTON_RIGHT PS2_right_button
30#define MOUSE_BUTTON_MIDDLE PS2_middle_button
32#define MOUSE_BUTTON_PRESS 1
33#define MOUSE_BUTTON_RELEASE 0
35extern const bool mouse_cursor[];
89void init_ps2_mouse(
void);
This is a basic header files with FrostWing specific short forms and basically a good for life header...
The headers files for E9 hack.
Header file for Hardware Abstraction Layer -> Source from GoGX OS.
Interrupts handler header.
void SetMouseMovementHandler(MouseMovementHandler handler)
Set the mouse movement handler function.
void process_mouse(InterruptFrame *frame)
Handles the mouse's.
void(* MouseMovementHandler)(int64_t xRel, int64_t yRel)
Type definition for mouse movement handler functions.
ivec2 GetMousePosition(void)
Get the mouse position.
void(* MouseButtonHandler)(uint8_t button, uint8_t action)
Type definition for mouse button handler functions.
void SetMouseButtonHandler(MouseButtonHandler handler)
Set the mouse button handler function.
ivec2 GetLastMousePosition(void)
Get the last mouse position.