Mouse wheel control


#1

Hello !
How can I control the mouse wheel ?

Thx !


#2

Hi!
Sorry for the late feedback.

Here is how you can get the mousewheel input :

import gs

mouse = gs.GetMouse()

if mouse.GetValue(gs.InputDevice.InputRotY) != 0:
wheel_dt = mouse.GetValue(gs.InputDevice.InputRotY)

Simply proceed as with any analogic controler. The mousewheel behave as an axis.

'hope this helps :slight_smile: