playMaker

Author Topic: Activating GUI Button w/Keyboard Press?  (Read 1744 times)

willoneill

  • Playmaker Newbie
  • *
  • Posts: 3
Activating GUI Button w/Keyboard Press?
« on: July 04, 2013, 01:49:16 PM »
Hey guys,

I'm new to PlayMaker and still learning a lot, but I'm wondering if there is any tutorial or advice out there on how I can set up a "GUI Button" such that in addition to being able to click on it with the mouse, a key can be setup as a shortcut? Or can I globally bind a key to the LMB?

Let me know if I'm not even going about this in the right way, and what a better approach might be! Thanks!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Activating GUI Button w/Keyboard Press?
« Reply #1 on: July 05, 2013, 07:56:54 AM »
Hi,

 yes, simply have a nother fsm watching for the left mouse down ( using "get button down" action), and fire a global event to the fsm handling your gui button logic, so that it performs the same operation as if the user clicked on that button.

bye,

 Jean