realbasic-nug
[Top] [All Lists]

Re: Hiding cursor in Windows games.

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Hiding cursor in Windows games.
From: Roger Clary <roger at classonesoftware dot com>
Date: Mon, 3 Jan 2005 21:06:21 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BDFF229B dot CA7C%william at realsoftware dot com>

On Jan 3, 2005, at 5:26 PM, William Yu 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.

Thanks, William. I'll have a look.

Roger M. Clary
Class One Software
http://www.classonesoftware.com
roger at classonesoftware dot com

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