playMaker

Author Topic: MouseWheel  (Read 3619 times)

Red

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

... or am i seriously overlooking something?

Alex Chouls

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

caesarhernandez

  • Playmaker Newbie
  • *
  • Posts: 30
    • View Profile
Re: MouseWheel
« Reply #2 on: June 07, 2014, 05: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: 296
    • View Profile
Re: MouseWheel
« Reply #3 on: July 05, 2014, 12: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.