Page 1 of 1

Busy Mouse Cursor Problem

Posted: Tue Feb 24, 2004 1:40 am
by Shannara
Ok, working on a sample, I opened a window, then did the openwindowedscreen commands. Calculated the FPS, and have it loop and display the FPS until I press Escape.

Now, unfortunately, the window cursor turns to "busy" until the program ends. How can I fix this so that I can actually use the mouse on my program?

Posted: Tue Feb 24, 2004 2:33 am
by two_bits
I think I know what your problem is, add this line of code somewhere in your main loop:

Code: Select all

event = windowevent ()
you can then check event againt such events as #PB_event_closewindow.
Hope this helps!!
James

Posted: Tue Feb 24, 2004 4:00 am
by Shannara
Perfect :) Thank you. Something so simple :D