Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Mouse Driver

Open GeorgeFence opened this issue 3 years ago • 3 comments

Hi, i want add to my os (PatchOS) a mouse, but codes i search didn't work :( Please can you send the code? thanks

GeorgeFence avatar Nov 24 '22 09:11 GeorgeFence

can we see what you have tried

zarlo avatar Nov 25 '22 03:11 zarlo

code from this video : https://www.youtube.com/watch?v=V1eRdbwExOk

GeorgeFence avatar Nov 27 '22 15:11 GeorgeFence

try using Cosmos.System.MouseManager, it's easier to use Getting X pos: Cosmos.System.MouseManager.X Getting Y pos: Cosmos.System.MouseManager.Y

9xbt avatar Nov 27 '22 15:11 9xbt

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;

MEMESCOEP avatar Nov 29 '22 01:11 MEMESCOEP