Busy Mouse Cursor Problem

Just starting out? Need help? Post your questions and find answers here.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Busy Mouse Cursor Problem

Post 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?
two_bits
User
User
Posts: 15
Joined: Sat Oct 04, 2003 6:52 pm

Post 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
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Perfect :) Thank you. Something so simple :D
Post Reply