Playmaker Forum

Playmaker Help & Tips => Android Help => Topic started by: shinodan on January 09, 2013, 02:48:26 AM

Title: [Solved] App seems to emulate a mouse click
Post by: shinodan on January 09, 2013, 02:48:26 AM
hey i put my game (actually 2) on my phone the other day and touching the screen seems to emulate a left mouse click even though i don't want it too, anyone know why?
Title: Re: App seems to emulate a mouse click
Post by: jeanfabre on January 09, 2013, 12:37:07 PM
hi,

 It's the same on IOS, a touch is fired as a left mouse click as well.

bye,

 Jean
Title: Re: App seems to emulate a mouse click
Post by: shinodan on January 09, 2013, 03:17:10 PM
Yes but is there any way to stop it or do i just have to remove the click actions?
Title: Re: App seems to emulate a mouse click
Post by: jeanfabre on January 10, 2013, 01:22:18 AM
Hi,

 I am not sure how to disable that. Maybe you should report a bug using playmaker bug report to request a preference or something.

 but basically, in what way it's an issue?

bye,

 Jean
Title: Re: App seems to emulate a mouse click
Post by: shinodan on January 10, 2013, 01:27:21 AM
Well im working on a minigolf game, i was hoping i would just be able to make it for pc, then add actions for the game to respond to touch. but that wont be possible, ill mabye just have to start from scratch.
Title: Re: App seems to emulate a mouse click
Post by: jeanfabre on January 10, 2013, 01:33:14 AM
Hi,

 I am still not sure how this is preventing you. on pc, any touch event are ignored, so you are safe to add two  global event for the same state. I do that all the time. So on mobile, you fire your own "MY TOUCH CLICK" event that triggers the same state as "MOUSE UP" system event and done.

bye,

 Jean
Title: Re: App seems to emulate a mouse click
Post by: shinodan on January 10, 2013, 01:53:46 AM
For example, im working on being able to touch the screen and have the arrow point in the direction of my finger, this doesnt work and i cant get rid of it because if i touch the screen at all, it just fires my golf ball in the direction its already in and its because its clicking when i touch the screen instead of aiming. on pc it was simple to just have a mouse look action on the arrow, then the mouse click charges the shot. but i dont want those methods to react to phone input.
Title: Re: App seems to emulate a mouse click
Post by: jeanfabre on January 10, 2013, 04:29:32 AM
Hi,

 I see, simply insert a state once you receive the mouse up and check if you are on mobile, that's all.

you can use the action below to maintain a global flag for example.

http://hutonggames.com/playmakerforum/index.php?topic=403.0

bye,

 Jean
Title: Re: App seems to emulate a mouse click
Post by: shinodan on January 10, 2013, 05:36:46 AM
Simplez! Thankyou!
Title: Re: App seems to emulate a mouse click
Post by: maxmartin58 on March 11, 2013, 10:52:35 AM
I think a game may be a robot with wild animal, the robot would be self sufficient