playMaker

Author Topic: MouseWheel  (Read 9131 times)

Red

  • Hero Member
  • *****
  • Posts: 563
MouseWheel
« on: May 28, 2011, 09:30:18 PM »
any idea how to get that into playmaker?

... or am i seriously overlooking something?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: MouseWheel
« Reply #1 on: May 29, 2011, 02:54:58 PM »
Uses the Get Axis action with Axis Name set to "Mouse ScrollWheel"

caesarhernandez

  • Playmaker Newbie
  • *
  • Posts: 30
Re: MouseWheel
« Reply #2 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.

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 318
Re: MouseWheel
« Reply #3 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.