If i use mouse system is stop
How does it stop? Do you get any error?
Also, when you need help, please use the gitter chat, only open an issue when you're sure it's a Cosmos bug.
Sorry me. I bad know English. System is stop then mouse class is created. Mouse is initialized.
Do you get any error? Have you tried to set breakpoints? Doesn't the system get stuck in a loop(while, for)?
I can not show you an error because it's not there. When I start the system and create a new instance of the mouse, the system stops doing something. It just hangs. If you do not create a mouse - the system does not hang.
Yes, the system has a while loop. I think that he has nothing to do with it. The while loop has a condition (true)
Probably the system gets stuck in that loop. You never break out of that loop?
I do not break this loop.
How do you know the system is hanged? I'm almost sure the problem is that the system gets stuck in the loop.
Okay, I'll check it.
No. The system still hangs. I'll check one more thing.
The system hangs when the mouse is drawn, not its class.
Do you know the line of code where it happens?
Wait...
Mouse rendering method:
public void DrawCursor(Hardware.Mouse MOUSE)
{
OS_GRAPHICS.SCREENDRIVER.SetPixel((uint)MOUSE.GetX(),(uint)MOUSE.GetY(),0,255,0);
}
Method incoking line:
DrawCursor(MOUSE);
Mouse - it's mouse class
SCREENDRIVER - VBEDriver class
I corrected the mistake! Before that, I used my class of pixel rendering. There was a mistake in it. Sorry for the time I took from you.