Author Topic: HTML5 + Touch Overlay  (Read 3536 times)

Offline shuy3n

  • long
  • ***
  • Posts: 110
    • View Profile
HTML5 + Touch Overlay
« on: February 11, 2012, 02:20:30 AM »
Ok ill try and explain best I can and hopefully you guys can tell me if I'm barking mad or not.  Basically just wondering if it would be possible to send physical keyboard commands via a the touch screen to an html5 game or app, in an effort to bypass the pre android 3.x webkits lack of multi touch support in web apps .

 :-[ slightly bad at explaining things so I made an image



Thanks for your time :)
« Last Edit: February 11, 2012, 03:40:20 AM by shuy3n »

Offline Epic_bubble

  • long
  • ***
  • Posts: 235
    • View Profile
Re: HTML5 + Touch Overlay
« Reply #1 on: February 11, 2012, 03:03:43 AM »
Hmm im not sure but I have seen html5 touch screen games in the past. I remember playing a html5 zelda clone thats had touch controls like most android games. The website it was hosted on seems to be gone now though.
Device: Xperia play
CPU: Qualcomm 1 GHz Scorpion (Snapdragon)
GPU: Adreno 205
RAM: 512 MB
Screen res: 854 ? 480
ROM: stock android 2.3.4 rooted

Offline shuy3n

  • long
  • ***
  • Posts: 110
    • View Profile
Re: HTML5 + Touch Overlay
« Reply #2 on: February 11, 2012, 07:12:45 AM »
also after an accident I found my browser could do multi touch under a different test :S I've mailed phonegap but I think it's just me being an overly excited child :P


using this browser
https://market.android.com/details?id=com.UCMobile.intl&hl=en

with this test
http://scripty2.com/demos/touch/touchspector/

gives this result **as many fingers I could use whilst taking a screenshot  :P **


Could any of this be used for someone implement multi touch on  an android 2.x device
« Last Edit: February 11, 2012, 08:06:03 AM by shuy3n »

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3471
  • Developer
    • View Profile
    • PaulsCode.Com
Re: HTML5 + Touch Overlay
« Reply #3 on: February 11, 2012, 07:53:07 AM »
Yes, it is possible to create an overlay + IME to convert touch events into keyboard events.  BT Controller, for example, does this (that one is separated into two apps, but could be written as a single app).  Personally, I don't know how to make the overlay draw on top of the screen when it is in a separate app, but that app I mentioned does it (there is an info overlay that's "always on top" in the client side of the app).  However, analog input would require the HTML game to be written to interpret multiple key codes as a single axis.  This is what I did in Mupen64Plus AE to handle analog information from USB/BT Joystick Center.

I couldn't say about your multitouch question.
« Last Edit: February 11, 2012, 07:55:41 AM by Paul »
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline shuy3n

  • long
  • ***
  • Posts: 110
    • View Profile
Re: HTML5 + Touch Overlay
« Reply #4 on: February 11, 2012, 08:15:08 AM »
 ;D Thanks Guys I've since found that phonegap can recognise some of an android keyboards physical controls so I'll get looking into the overlay scenario hopefully be something I can understand, but good to know theoretically at least its possible.

And I'll leave the multi touch thing with the phonegap devs I'm sure its probably been found before

Thanks again guys