-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse doesn't work. #88
Comments
...you literally never initalized the mouse 💀
put this in your before run |
Hi, Cool to know people still find interest in this project, and that it even works with cosmos still. I haven't worked on this in months due to the community around cosmos being very poor in terms of people constantly fighting and having lack of respect for each other, so I won't be able to help much with issues, but I can try. The other comment above is incorrect, Display.GetDisplay(X, Y) initializes the size. What are you running this on? If it's using raw USB input, it won't work because cosmos has no USB support as far as I'm concerned. |
Using PrismAPI myself, I have to add those two lines of code in order for the mouse to work. Without it, there is no mouse movement. |
Maybe your not doing it right |
I had those 2 lines but it still didn't work (i had this first, then i saw source code and deleted those lines) |
Describe the bug
Mouse doesn't move.
To Reproduce
My code:
`using PrismAPI.Hardware.GPU;
using Cosmos.System;
using PrismAPI.Graphics;
using PrismAPI.UI;
using PrismAPI.UI.Controls;
using System.Numerics;
namespace Renderingindimension
{
public class Program : Kernel
{
public Display Canvas = null!;
public Window MyWindow = null!;
public Label MyLabel = null!;
public Textbox MyTextBox = null!;
}
`
I ran it and it moved the window, but not the mouse
Expected behavior
Mouse is working
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: