Playmaker Forum

PlayMaker Help & Tips => PlayMaker Tips & Tricks => Topic started by: Red on May 28, 2011, 09:30:18 PM

Title: MouseWheel
Post by: Red on May 28, 2011, 09:30:18 PM
any idea how to get that into playmaker?

... or am i seriously overlooking something?
Title: Re: MouseWheel
Post by: Alex Chouls on May 29, 2011, 02:54:58 PM
Uses the Get Axis action with Axis Name set to "Mouse ScrollWheel"
Title: Re: MouseWheel
Post by: caesarhernandez on June 07, 2014, 08:25:20 AM
I am using GetAxis with "Mouse ScrollWheel" as the Axis Name, but how do I use the value stored in the variable? If "Every Frame" is checked, it never fires a finish event.
Title: Re: MouseWheel
Post by: artician on July 05, 2014, 03:06:32 PM
Hey Caesar,

Agnostic of the whole mouse-input concept, think about how you'd trigger an event with a changing float.  You may have done it before.  For example, detect when the float variable stops changing, or when it's <X (where X is a value you determine). 
So, something like a Float Compare action that determines if the variable is between -1 - 1, or a boolean in a separate FSM that changes its value if the mousewheel Float variable is !=0. 
Just a couple ideas.  Hope you figure it out!



I am using GetAxis with "Mouse ScrollWheel" as the Axis Name, but how do I use the value stored in the variable? If "Every Frame" is checked, it never fires a finish event.