-
Notifications
You must be signed in to change notification settings - Fork 552
Creating a GUI: Adding the mouse
Winksplorer edited this page Feb 7, 2021
·
8 revisions
The correct way to access the mouse position in Cosmos is through the MouseManager class. To initialise the mouse, set both the MouseManager.ScreenWidth
and MouseManager.ScreenHeight
to the correct values. Then the position of the mouse can be determined by getting the values MouseManager.X
and MouseManager.Y
.