So... Mouse wheel?

Posted By: sPlKe

So... Mouse wheel? - 07/08/07 15:32

how come there is no mouse wheel function in A6?
is there ANY way to include the mouse wheel?
Posted By: Rhuarc

Re: So... Mouse wheel? - 07/08/07 15:35

mickey.z if I remember right...

-Rhuarc
Posted By: frazzle

Re: So... Mouse wheel? - 07/08/07 17:48

Quote:


mickey.z if I remember right...





Confirmed by the manual :

Quote:


mickey
Movement of the mouse in pixels (mickey.x, mickey.y) and the mouse wheel in 120 units per notch (mickey.z) within the last frame.
Type:
vector, read-only
Example:
action move_me_by_mouse()
{
mouse_mode = 0;
while (1)
{
my.pan += mickey.x*time;
my.tilt += mickey.y*time;
ent_move(vector(mickey.z*0.1*time,0,0),nullvector);
wait(1);
}
}






Cheers

Frazzle
Posted By: tompo

Re: So... Mouse wheel? - 07/08/07 17:53

Or to zooming camera
camera.arc += mickey.z *time_step;
© 2024 lite-C Forums