Login  Register

RE: Is there a function where I can get a mouse and a keyboard event at the same time?

Posted by David P. Reed on Apr 25, 2013; 11:32am
URL: https://forum.world.st/Is-there-a-function-where-I-can-get-a-mouse-and-a-keyboard-event-at-the-same-time-tp4683464p4683520.html

There's no such thing as simultaneous.... however, you can watch key-up and key-down events and thus know the state of the "x" key as of the time the mouseclick arrives.

 



On Wednesday, April 24, 2013 6:53pm, "sachuraju" <[hidden email]> said:

> Following up on the Rubik's cube, now what I want to capture a mouse click as


> well as a keyboard press. This would enable me to implement the logic of
>
> If mouse button is pressed, and if button 'x' is pressed on the keyboard,
> then rotate the cube about 'x' axis, and similarly for rotations around y
> axis and z axis if buttons 'y' and 'z' are pressed?
>
>
>
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/Is-there-a-function-where-I-can-get-a-mouse-and-a-keyboard-event-at-the-same-time-tp4683464.html
> Sent from the Croquet - Dev mailing list archive at Nabble.com.
>