Advertisement

Clicking response problems XLib

Started by July 22, 2004 09:01 PM
-1 comments, last by DarkNebula 20 years, 3 months ago
When you click on the button, sometimes it goes on too long, or not enough, or not at all! It works perfecaly in window. But when I changed it to work with Linux I ran into this problem and I have no idea what's wrong. I run this every loop around too:

mouse.SetX(event.xmotion.x);
mouse.SetY(window.height - event.xmotion.y);
		
if(event.xbutton.type == ButtonPress)
	if(event.xbutton.button == Button1)
		mouse.SetLDown(true);

if(event.xbutton.type == ButtonRelease)
	if(event.xbutton.button == Button1)
		mouse.SetLDown(false);
			
window.gamestate->Update(0);
window.gamestate->Draw();

http://home.comcast.net/~darknebula/gui Try it for yourself and see what the problem exactly is. Thanks.

This topic is closed to new replies.

Advertisement