Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: willoneill on July 04, 2013, 01:49:16 PM

Title: Activating GUI Button w/Keyboard Press?
Post by: willoneill 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!
Title: Re: Activating GUI Button w/Keyboard Press?
Post by: jeanfabre 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