[VM] [Newbie] How might I set the cursorpoint?

John M McIntosh johnmci at smalltalkconsulting.com
Wed Jan 26 05:31:35 UTC 2005


If I recall someone asked this question last summer, yes Bert in August
You will need to do some FFI work for this.
Maybe Bert has a changeset?
Maybe it lurks in Croquet?

Am 22.08.2004 um 00:06 schrieb John M McIntosh:

> you can always ask the current mouse location in the window from  
> EventSensor, or  use:
>
> The really old
>
>  pascal void GetMouse (Point *mouseLoc);
>  mouseLoc
>  Returns a pointer to a point describing the current mouse location in  
> local coordinates of the current graphics port (for example, the  
> active window). Note that this value differs from the value of the  
> where  field of the event record, which specifies the mouse location  
> in global coordinates.
>
> {Beware looking at this value might not reflect the squeak window  
> coordinates because of where the graphics port is set to. }
>
>
> To move the mouse, there are a few methods (old and new)
> http://developer.apple.com/technotes/tn/tn2007.html
>
> Moves the cursor to a specified point relative to the display origin  
> (the upper left corner of the display).
> CGDisplayErr CGDisplayMoveCursorToPoint (
>    CGDirectDisplayID display,
>    CGPoint point
> );


.

On Jan 25, 2005, at 9:08 PM, Michael Rueger wrote:

> Tim Rowledge wrote:
>
>> Prim 91 is actually test  display depth... we don't do setting of the
>> cursor position. It'sa pretty bad bit of UI generally to take the  
>> users
>> 'attention' and drag it somewhere else by force.
>
> yes and no.
> You need the set cursor function to implement first person perspective  
> navigation in 3D environments.
>
> Michael
>
>
>
--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===




More information about the Squeak-dev mailing list