Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Baguettator on Tue 08/06/2021 18:17:09

Title: Scroll Wheel utilization ?
Post by: Baguettator on Tue 08/06/2021 18:17:09
Hi !

I have a very simple question, I looked for a long time for an answer, but never found any...

I want to use the mouse wheel in a game to allow to scroll a slider up and down (it allows to scroll a label into a GUI to read the whole text that can't be displayed fully in the GUI).

Which functions can I use for that ?

Many thanks !

EDIT : oh sorry, I finally found out the solution... in the tutorial... It's like when I ask for help, help comes by it's own... :D
Title: Re: Scroll Wheel utilization ?
Post by: eri0o on Tue 08/06/2021 18:32:41
For anyone who found this from Google, below is the excerpt from the manual, about the on_mouse_click event handler:

QuoteIf 'Enable mouse wheel support' is enabled, this function can also be called with eMouseWheelNorth or eMouseWheelSouth

So don't forget to first enable the functionality in general settings.