realbasic-games
[Top] [All Lists]

Re: Beach ball and mouse-cursor

To: "REALbasic Games" <REALbasic-Games at lists dot realsoftware dot com>
Subject: Re: Beach ball and mouse-cursor
From: Frank C <pox at planetquake dot com>
Date: Sat, 27 Sep 2003 16:28:51 -0400
On Saturday, September 27, 2003, at 03:21  PM, Nils Raschke wrote:

The beach ball is a system thing - it displays because the application
isn't displaying one. You can hide the cursor altogether though.

But if you need a mouse cursor in your game AND a tight loop?

This is one reason I made the Mouse Events Plugin: <http://webhome.idirect.com/~frankco/rb/plugins.html> (Mac only ATM).

Note that there are other problems with using tight loops though...

Someone can always Apple-TAB/H out of your app, or click into another app (if your app is windowed, and you're not dissociating the cursor through declares or a plugin) but your application is oblivious to these events - a user won't be able to click back into it, and it will process keys (etc) as if it's infront. You can work around this with some nasty hacks like polling the process manager, or trying to detect the relevant key combos and breaking out of the tight loop when appropriate.

Frank.


---
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

<Prev in Thread] Current Thread [Next in Thread>