feat: split syscalls into files, change max process ceiling

This commit is contained in:
2026-02-22 17:23:35 +01:00
parent a001fa513d
commit 1568378d04
22 changed files with 1181 additions and 872 deletions
+26
View File
@@ -0,0 +1,26 @@
/*
* Mouse.hpp
* SYS_MOUSESTATE, SYS_SETMOUSEBOUNDS syscalls
* Copyright (c) 2026 Daniel Hammer
*/
#pragma once
#include <Drivers/PS2/Mouse.hpp>
#include "Syscall.hpp"
namespace Zenith {
static void Sys_MouseState(MouseState* out) {
if (out == nullptr) return;
auto state = Drivers::PS2::Mouse::GetMouseState();
out->x = state.X;
out->y = state.Y;
out->scrollDelta = state.ScrollDelta;
out->buttons = state.Buttons;
}
static void Sys_SetMouseBounds(int32_t maxX, int32_t maxY) {
Drivers::PS2::Mouse::SetBounds(maxX, maxY);
}
};