SETACTIVEMOUSE on the Pre

Previous topic - Next topic

MrTAToad

When used this appears to reset the MOUSESTATE bnuttons of the selected active mouse.  So, if the screen is pressed and held down, the mouse buttons only register 1 once (at first pressed), and then 0 until the mouse is moved...

Millerszone

Quote from: MrTAToad on 2011-May-30
When used this appears to reset the MOUSESTATE bnuttons of the selected active mouse.  So, if the screen is pressed and held down, the mouse buttons only register 1 once (at first pressed), and then 0 until the mouse is moved...
That's the problem I had with HTD Baseball for the Pre:
http://www.glbasic.com/forum/index.php?topic=6091.msg48060#msg48060
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

#2
I think I've solved it now - GETMOUSECOUNT was returning a value of 10, which appears to be higher than the device is capable of.  Someone on the webOS forums limited theirs to 4, so I did too - and it works.  5 does too - but I haven't tried any higher (although it does appear that 5 is the limit).