Mouse Driver
Hi, i want add to my os (PatchOS) a mouse, but codes i search didn't work :( Please can you send the code? thanks
can we see what you have tried
code from this video : https://www.youtube.com/watch?v=V1eRdbwExOk
try using Cosmos.System.MouseManager, it's easier to use Getting X pos: Cosmos.System.MouseManager.X Getting Y pos: Cosmos.System.MouseManager.Y
try using Cosmos.System.MouseManager, it's easier to use Getting X pos: Cosmos.System.MouseManager.X Getting Y pos: Cosmos.System.MouseManager.Y
Don't forget to set the mouse sensitivity and boundaries! Configuration for a 640x480 screen, with a mouse sensitivity of 1:
- Mouse sensitivity:
Cosmos.System.MouseManager.MouseSensitivity = 1; - Mouse Boundaries for width:
Cosmos.System.MouseManager.ScreenWidth = 640; - Mouse Boundaries for width:
Cosmos.System.MouseManager.ScreenHeight = 480;