playMaker

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

shinodan

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: App seems to emulate a mouse click
« Reply #1 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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #2 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: App seems to emulate a mouse click
« Reply #3 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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #4 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: App seems to emulate a mouse click
« Reply #5 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

shinodan

  • Full Member
  • ***
  • Posts: 180
    • View Profile
    • Shinozone
Re: App seems to emulate a mouse click
« Reply #6 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: App seems to emulate a mouse click
« Reply #7 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

shinodan

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

maxmartin58

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
    • Austin DWI defense lawyer
Re: App seems to emulate a mouse click
« Reply #9 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
DWI defense page A DWI conviction can severely impact your life. Austin DWI defense lawyer