Maybe this will help!
mouse_wheel = sys_metrics(75);
This will check if the mouse wheel exists.
Then mickey.z will control the arc like the code below.
if (mouse_wheel != 0) { // wheel present?
// then use the wheel to zoom in and out
camera.arc -= 1.0 * mickey.z * time_step;
}
else { // wheel not detected
// use the "Home" and "End" keys to zoom in and out
camera.arc -= (key_home - key_end) * time_step;
}
Last edited by ATOMIX; 07/31/08 17:18.