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();
Clicking response problems XLib
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:
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
Popular Topics
Advertisement