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: Nils Raschke <n4d2r at gmx dot de>
Date: Sun, 28 Sep 2003 11:41:26 +0200
Hi Frank!

>> 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).

Thanks!

What is the difference between CursorHide() and CursorObscure()?
What are CursorShield(w as Window) and CursorShield(rect as RectControl)
for?

> 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.

I'm polling keyboard.asyncKeyDown() once in the loop. If a user presses
apple-tab in a moment when I'm not polling, I wont have a chance to detect
that I'm now in the background, right?

So the right strategy would be to hide the cursor and poll as often as
possible for apple-tab and apple-H (which doesn't seem to affect my app) and
leave the tight loop when these keys are pressed.

Nils


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

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