GETMOUSECOUNT and MULTITOUCH

Previous topic - Next topic

Neurox

Hello,
Today I was trying to write a program that uses multitouch up to 10 fingers.
The program is simple. The strange thing is that when I go to press more than five fingers the counters of the array are zero.  :(
Any suggestions?
Code (glbasic) Select


TYPE BP_TipoMouse
   LNx  = 0 //Coordinata X
   LNy  = 0 //Coordinata X
   LNb1 = 0 //Pulsante sinistro
   LNb2 = 0 //Pulsante destro
ENDTYPE
LOCAL LNx,LNy,LNb1,LNb2,LNi,LNmaxmouse
LOCAL LAmouse[] AS BP_TipoMouse
DIM LAmouse[11]
SYSTEMPOINTER TRUE
   WHILE TRUE
      LNmaxmouse = GETMOUSECOUNT()-1   
      IF LNmaxmouse > 10 THEN LNmaxmouse = 10
      FOR LNi= LNmaxmouse TO 0 STEP -1
         SETACTIVEMOUSE LNi           
         MOUSESTATE LNx,LNy,LNb1,LNb2
         IF LNb1=0
            LAmouse[LNi].LNb1=0
            LAmouse[LNi].LNx=0
            LAmouse[LNi].LNy=0
         ELSEIF LNb1=1
            LAmouse[LNi].LNx=LNx
            LAmouse[LNi].LNy=LNy
            LAmouse[LNi].LNb1=1
         ENDIF
      NEXT

      //Per controllo/for check
      FOR LNi = 0 TO 10
         PRINT "Mouse:"+LNi+" - "+LAmouse[LNi].LNb1+" - "+LAmouse[LNi].LNx+" - "+LAmouse[LNi].LNy ,0,0+(LNi*20)
      NEXT
      SHOWSCREEN
   WEND





Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

matchy

Yeah ...I can only get five on the iPad although it supposed to be 10 or 16. Note with iOS4.3 beta sliding four fingers it will slide the app window/task-bar.

Kitty Hello

strange. I'll investigate.
What does mousecount return? 16?

Neurox

Quote from: Kitty Hello on 2011-Jan-31
strange. I'll investigate.
What does mousecount return? 16?

Return 10!
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it