Search Unity

  1. Click here to see what's on sale for the "Best of Super Sale" on the Asset Store
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Simulate iPhone Touchs

Discussion in 'Wish List' started by bronxbomber92, May 12, 2009.

  1. bronxbomber92

    bronxbomber92

    Joined:
    Nov 11, 2006
    Posts:
    890
    I'd be great to simulate iPhone touchs in the Game View so we don't always have to use our iPhone/iPod Touch :)
     
  2. metervara

    metervara

    Joined:
    Jun 15, 2006
    Posts:
    203
    openFrameworks does an interesing thing in that they've mapped the standard input events (mousePressed, mouseReleased etc.) to the first touch input. So the first touch input on the iPhone gets handled like a normal mouse input.

    Of course it only works for products that have a single touch input, for anything more you have to get specific. Still, for interfaces and button clicks it's very nice.

    /P
     
  3. Scrat

    Scrat

    Joined:
    Apr 20, 2008
    Posts:
    316
    Can't you just map a key from the keyboard to do a certain action? This is what I do for my game when I don't want to use the iPod. It's like only 2 more lines of code.
     
  4. bronxbomber92

    bronxbomber92

    Joined:
    Nov 11, 2006
    Posts:
    890
    Yeah, but it's quite annoying to switch between each constantly.
     
unityunity