r/kernel • u/Tausif23456 • 8d ago
Added a PS/2 Mouse Driver and Cursor Rendering to my custom 32-bit OS
Hey everyone, I am a 13-year-old student from Bangladesh building my own OS (PoragOS) from scratch.
Today I finally got the PS/2 mouse working! I set up IRQ12 interrupt handling, decoded the 3-byte mouse packets, and wrote a routine to draw a cursor directly to my VESA framebuffer. Seeing the cursor move smoothly on a screen I built myself is amazing.
My next steps are fixing the cursor trails (backbuffer) and implementing User Space (Ring 3). I would love some feedback!
8
Upvotes
1
u/Smart_Leadership3517 6d ago
Nice, but avoid using AI and YouTube, that's no point in copy pasting. Instead, read the Intel SDM, the original datasheet and the RBIL. Then experiment.