Jump to content


Photo

touch , some doubts


  • Please log in to reply
2 replies to this topic

#1 _259189

_259189

    GMC Member

  • New Member
  • 8 posts

Posted 27 April 2012 - 06:50 PM

Hi ! I wanna know how touch and multi-touch work in gameMaker html5 ...
If all devices are supported ..
if someone has an example, it will be helpful.

thx all !! ^^
  • 0

#2 Overloaded

Overloaded

    Stand-Alone

  • GMC Member
  • 565 posts
  • Version:GM:Studio

Posted 27 April 2012 - 08:24 PM

I think every mouse event, count as touch/multi-touch.
  • 0

#3 dereklarue

dereklarue

    GMC Member

  • GMC Member
  • 72 posts
  • Version:GM:Studio

Posted 03 May 2012 - 01:09 AM

Well, mouse events count as a single touch, but won't work for multiple touches.
In studio, the function:
YoYo_MouseCheckButton(device,button) //pressed and released functions are available as well
can be used to detect multiple touches, (function is said to be changed at a later date) device is the touch input. You use a "for loop" to detect how many fingers are touching the screen (up to 5). HTML5 does NOT have this function. If you own html5, you will get studio with the html5 mod free.
Why not jump in the studio tub while the waters warm so you can test your projects properly?
Its supposed to be released relatively soon (this month?). :)

Edited by dereklarue, 03 May 2012 - 03:12 AM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users