playMaker

Author Topic: [Solved] App seems to emulate a mouse click  (Read 6919 times)

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
[Solved] App seems to emulate a mouse click
« on: January 09, 2013, 04: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?
« Last Edit: January 10, 2013, 07:37:06 AM by shinodan »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: App seems to emulate a mouse click
« Reply #1 on: January 09, 2013, 02:37:07 PM »
hi,

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

bye,

 Jean

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #2 on: January 09, 2013, 05:17:10 PM »
Yes but is there any way to stop it or do i just have to remove the click actions?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: App seems to emulate a mouse click
« Reply #3 on: January 10, 2013, 03: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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #4 on: January 10, 2013, 03: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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: App seems to emulate a mouse click
« Reply #5 on: January 10, 2013, 03: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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #6 on: January 10, 2013, 03: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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: App seems to emulate a mouse click
« Reply #7 on: January 10, 2013, 06: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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #8 on: January 10, 2013, 07:36:46 AM »
Simplez! Thankyou!

maxmartin58

  • Guest
Re: App seems to emulate a mouse click
« Reply #9 on: March 11, 2013, 01:52:35 PM »
I think a game may be a robot with wild animal, the robot would be self sufficient