mouse_wheel_up

The last pressed mouse button.

Syntax:

mouse_wheel_up();


Returns: Bool


Description

This function returns true if the mouse wheel is being rotated upwards and false otherwise.


Example:

if mouse_wheel_up()
   {
   y -= 10;
   }

This moves the current instance up the screen if the mouse wheel is rotated upwards.


Back: Mouse Input
Next: mouse_wheel_down
© Copyright YoYo Games Ltd. 2018 All Rights Reserved