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?
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
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.
strange. I'll investigate.
What does mousecount return? 16?
Quote from: Kitty Hello on 2011-Jan-31
strange. I'll investigate.
What does mousecount return? 16?
Return 10!