Set cursor position primitive does not work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Set cursor position primitive does not work

Hong Yi

Hello,

 

I have been trying to set cursor position to the touch position in an effort to integrate multi-touch library into a Croquet world I have developed. Basically, I wrote a listener that can receive multi-touch events and then map the events to corresponding mouse events which has worked so far, but I cannot set the cursor position to the touch position by setting cursorPoint on the Sensor. Then I found this bug filed against Squeak VM that states “Set cursor position primitive does not work”

 

http://bugs.squeak.org/view.php?id=2406

 

Does anybody know the current status of this bug? It appears it does not work on the Croquet version I am currently using (i.e., pre-built/patched version of the current state of the Croquet SDK – Croquet.1.0.25.image). Does anybody have any experiences with this or any suggestions on how to make it work?

 

Thanks,

 

Hong

 

Reply | Threaded
Open this post in threaded view
|

Re: Set cursor position primitive does not work

Bert Freudenberg

On Feb 25, 2008, at 17:54 , Hong Yi wrote:

> Hello,
>
> I have been trying to set cursor position to the touch position in  
> an effort to integrate multi-touch library into a Croquet world I  
> have developed. Basically, I wrote a listener that can receive  
> multi-touch events and then map the events to corresponding mouse  
> events which has worked so far, but I cannot set the cursor  
> position to the touch position by setting cursorPoint on the Sensor.

Well, you do not have to use the hardware cursor, you can simply add  
a new Hand that would be moved by your multi-touch events (you can  
even have multiple Hands).

> Then I found this bug filed against Squeak VM that states “Set  
> cursor position primitive does not work”
>
> http://bugs.squeak.org/view.php?id=2406
>
> Does anybody know the current status of this bug?

Nothing new.

> It appears it does not work on the Croquet version I am currently  
> using (i.e., pre-built/patched version of the current state of the  
> Croquet SDK – Croquet.1.0.25.image). Does anybody have any  
> experiences with this or any suggestions on how to make it work?

You could use FFI calls to set the cursor position, if you really  
need to influence the hardware cursor.

- Bert -