realbasic-nug
[Top] [All Lists]

Re: Mouse Clicks with a running sprite surface?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Mouse Clicks with a running sprite surface?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 29 May 2001 08:22:59 -0700
At 10:00 AM -0500 5/29/01, Chris Dillman wrote:

can you get mouse clicks with a running sprite surface?

Yes, just use the Window's MouseDown event.

or call a function like Button() // C++

Yes, System.MouseDown.

and then get the mouse X/Y...

Window.MouseX and Window.MouseY.

I do not want to run a sprite withe a thread/timer
which shares CPU time better but runs like 5+ FPS or more slower.

I highly recommend running it from a timer nonetheless.

Cheers,
- Joe
--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.strout.net              |
`------------------------------------------------------------------'



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