realbasic-nug
[Top] [All Lists]

Re: Hiding cursor in Windows games.

To: "REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Hiding cursor in Windows games.
From: William Yu <william at realsoftware dot com>
Date: Mon, 03 Jan 2005 16:26:03 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
On 1/3/05 4:12 PM, "Roger Clary" <roger at classonesoftware dot com> wrote:

> My question then, how does one hide a cursor for games on Windows? Its
> quite disconcerting to see the arrowCursor keep reappearing as the
> player moves the mnouse about.

It sounds like you want to clip the cursor to the bounds of your window.
There's a Win32 API called ClipCursor that will do it.  Worth a try maybe,
you'll have to deal with screen coordinates, but I'm sure you'll figure that
one out.


-- 
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>


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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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