Android: Sensors and multitouch?

Previous topic - Next topic

svenart

Hello,

I searched for this in the forums, but was not able to find anything.

Is it possible to use the android sensors (compass, display rotation ect.) with glbasic?
Is multitouch possible with glbasic and android?

Are there tutorials or examples for this?
https://spagetticoder.itch.io/

www.medievalworlds.com

spacefractal

Compass is no, but multi touch and rotation is supported.

Make sure on android to support single touch as well early bad multi touch screens (search goggle for axis flip issue), if you want to support so many v2.2 devices as possible. It's should not been happens on newer phones today.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

svenart

thank you very much for the info.

But I still dont know HOW to retrieve multitouch. For singletouch I just use the mousepointer, but how can I retrieve more than just one position?
https://spagetticoder.itch.io/

www.medievalworlds.com

Hatonastick

Look up GETMOUSECOUNT().  I haven't checked yet, but supposedly it applies to Android as well, despite what the help file says. :)
Mat. 5: 14 - 16

Android: Toshiba Thrive Tablet (3.2), Samsung Galaxy Tab 2 (4.1.2).
Netbook: Samsung N150+ Netbook (Win 7 32-bit + Ubuntu 11.10).
Desktop: Intel i5 Desktop with NVIDIA GeForce GTX 460 (Win 8.1 64-bit).

Moebius

When I last checked you could only get the 'first' finger using SETMOUSE etc on android....
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

Minion

I use SETMOUSE in all my android games (on my phone I can have up to 4 multi touches)

Moebius

Actually?  Well I stand corrected  =D
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

spacefractal

its added in a newer update, just remind far from all android phones have it or might have flaws as well can take some sort of CPU.

So it's good choice to do both single touch and multitouch for android.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

ampos

Multitouch works, as my app Glowing Sky has multitouch and it works.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

MrTAToad

Should also remember that not all devices are capable of using multi-touch (especially the cheap, Chinese ones).

Wampus

Quote from: MrTAToad on 2011-Dec-07
Should also remember that not all devices are capable of using multi-touch (especially the cheap, Chinese ones).

Oh yeah! Worth remembering (thanks). Some control schemes assume at least two-touch for screen pinching, rotate around a point, etc. I suppose as long as a prototype game is playable on a PC using just a mouse it should be playable on a single-touch screen.

MrTAToad

Yes, as long as you do it for the left mouse button/Button 1 and no other there will be no problem