(Unity3D) Standard asset joystick does not work properly - ios

I am using the joystick script from the standard assets here for a mobile game. On one side of the screen I have the joystick for movement, and on the other side I have two buttons for jump and attack. The problem I have is when I am using the joystick to move and then hit jump or attack, the joystick goes to the other side of the screen where I hit the button (the joystick acts like I slid my finger to the other side of the screen)
How can I alter the script so that the joystick doesn't respond to any other touch events when I already have 1 finger on the joystick?

Related

iOS Magic Keyboard APIs

Is it possible to intercept the trackpad events from the magic keyboard (with trackpad) in an iOS app and process them myself while hiding the pointer and not sending these events to the UI, or is that not possible?
Think about a game for instance where the user would move their finger around on the trackpad to move a character around on screen, but you wouldn't want to show the pointer circle and the location on the screen doesn't matter or if/where they click, you are just using the change in position as they move their finger on the trackpad.
Thanks

Swift SpriteKit: Recognize multiple taps

I have a game and at the moment there is an AI player and human but I want to make it multiplayer. The game is designed where when you press the top left/right the sprite on top would move left/right and if you press the lower left/right the lower sprite would move towards the left/right. Imagine the iPhone to always be in portrait mode.
The issue is that I am using touchesBegan and I can't figure out how to make that work with possible multiple taps coming in at the same time

Unity 3d 4.6b New GUI system doesn't take touch when already a touch event is occurring in 3d scene

I know this is beta version but..
I have a Canvas->Button which works fine when I tap it normally.
I have a joystick in my scene which is drawn by separate camera other than mainCamera.
now, while i am operating joystick without leaving it, if I tap on he Canvas->Button - it does not respond. When I lift finger from joystick and tap on it, it works fine.
Same goes for another Canvas->Toggle control.
It has something to do with the layering or anything else...I'm not sure?

XNA - Surface - Tracking Touch Input

How do I track a person's finger moving on the surface when using XNA?
I have managed to get all the touch points and record them but I don't know how to check if a person moved their finger or released the press and pressed again somewhere nearby.
I searched for TouchPoint.Id which looked promising but I don't know how it works and documentation is lacking.
I need this in order to handle proper button input (wherein if a person moves their finger out of the button bounds after pressing down on it then that doesn't count as a press).
The ID will be the same for a given finger until that finger is lifted up. IDs get recycled so you need to look at every input frame to know when a finger was lifted.
There is an "interaction framework" sample in the Surface SDK that implements concepts like input capture and skinnable button/list controls with XNA

Can a swipe event fire before the user raises his or her finger?

I am using swipes to navigate through the pages of my jQuery mobile / PhoneGap application. Do you know if it is possible to let the page transition start after the swipe distance of (for example) 50 px? In other words: It should start before the finger stops touching the screen.
That would advance the user experience as they don't have this little waiting time between raising their finger and the actual page transition.
Thanks for you time!
It should be capable using the 'touchStart' and 'touchMove' events. Record the position of the touch when 'touchStart' fires and then check the displacement whenever 'touchMove' fires. If the displacement exceeds 50 px, call your page switching function. 'touchEnd' will be fired when the user lifts their finger, so you may need to compensate for that if any special actions occur then.
A good place to start is Padilicious's swipe library (http://padilicious.com/code/touchevents/). This can easily be modified to support a swipe-distance setup.
Let me know if you need anymore information.

Resources