GLBasic forum

Main forum => Bug Reports => Topic started by: ampos on 2011-Apr-07

Title: Is the Palm Pre 2 multitouch?
Post by: ampos on 2011-Apr-07
If so, it seems not to be working  :P
Title: Re: Is the Palm Pre 2 multitouch?
Post by: Ian Price on 2011-Apr-07
I noticed that too. According to Wiki it is, but I've not seen any evidence of that.
Title: Re: Is the Palm Pre 2 multitouch?
Post by: Millerszone on 2011-Apr-07
I had a problem with multi-touch. HTD Baseball code worked perfect on the iPhone, but on the Palm when I would pitch
and then press the bat button it worked the first time, but sometimes after, when I press the pitch button, the bat would also swing.
So I changed my code to this, and it works. Probably can be optimized.
Code (glbasic) Select

batPressedA = FALSE
batPressedB = FALSE

IF (arcadeMode = TRUE OR homerunDerby = TRUE OR twoPlayerMode = TRUE)
IF ANIMCOLL(mousePointer, 0, mouse[0].x, mouse[0].y, batPitchButtons, 0, batPitchButtonsX, batPitchButtonsY) AND mouse[0].active THEN batPressedA = TRUE
IF ANIMCOLL(mousePointer, 0, mouse[1].x, mouse[1].y, batPitchButtons, 0, batPitchButtonsX, batPitchButtonsY) AND mouse[1].active THEN batPressedB = TRUE
IF (batPressedA OR batPressedB) AND swingTheBat = FALSE
        swingTheBat = TRUE
PLAYSOUND (batSolenoidSnd, 0.0, batSolenoidVol)
ENDIF
ENDIF

Title: Re: Is the Palm Pre 2 multitouch?
Post by: Kitty Hello on 2011-Apr-07
what does NUMMICE return? NUMMOUSE? MOUSECOUNT? My brain....
Title: Re: Is the Palm Pre 2 multitouch?
Post by: ampos on 2011-Apr-07
I hve just found that my code uses a ?IFDEF IPHONE for mouse check, as I used mouse button #2 as 2nd mouse on PC for testing purposes.

Will check later changing the ?IFDEF WEBOS

PS: WEBOS defined as plattaform ID is not listed in help file.

PPSS: WEBOS is pronunced the exact same as the spanish word for EGGS (used also as balls/testicles). HUEVOS.
Title: Re: Is the Palm Pre 2 multitouch?
Post by: MrTAToad on 2011-Apr-07
On the Pre, GETMOUSECOUNT always return 10, no matter what you press (or dont press).

This will, of course, need to be fixed before the Tablet comes out as that is multi-touch compliant :)
Title: Re: Is the Palm Pre 2 multitouch?
Post by: Kitty Hello on 2011-Apr-08
that's right! mousecount is ten, but not all mice might have the button pressed.
Title: Re: Is the Palm Pre 2 multitouch?
Post by: ampos on 2011-Apr-12
Quote from: ampos on 2011-Apr-07
I hve just found that my code uses a ?IFDEF IPHONE for mouse check, as I used mouse button #2 as 2nd mouse on PC for testing purposes.

Will check later changing the ?IFDEF WEBOS

PS: WEBOS defined as plattaform ID is not listed in help file.

PPSS: WEBOS is pronunced the exact same as the spanish word for EGGS (used also as balls/testicles). HUEVOS.

Multitouch works fine. It was the ?IFDEF IPHONE.
Title: Re: Is the Palm Pre 2 multitouch?
Post by: MrTAToad on 2011-Apr-12
One problem out of the way :)
Title: Re: Is the Palm Pre 2 multitouch?
Post by: Ian Price on 2011-Apr-13
Even outside of GLBasic programs you can't see it is multi-touch - you don't get a "ripple" with the second touch if you are pressing the screen.