Hi,
In my application there are some screens which are loaded with DisplayImageIconFromCard (0x40,0x6D) from a file. It's a 480x272 display so loading the image takes an appreciable time, aorund half a second.
I wanted an auto-repeat feature for some touchscreen buttons that are used to set the date.
So on TouchPress, I set a downcounter to 500. The downcounter is decremented at 1kHz and when it gets to zero, if I read TouchMoving from the screen (without an intervening TouchRelease) I pretend that the user has touched the screen again, and set the downcounter to 250.
My problem is that the touch which calls up the screen may only last about 200ms, but after the new screen has been drawn (500+ms later) I call GetTouchStatus and it returns TouchMoving. Clearly the screen has buffered the touch info. Even if I call GetTouchStatus again immediately I still get TouchMoving. I have to call GetTouchStatus, wait 10ms (5ms is not enough) and then call GetTouchStatus again to get the true current TouchStatus.
I think your manual could do with some explanation on this point, it took all morning to figure out.
Cheers,
Mark
In my application there are some screens which are loaded with DisplayImageIconFromCard (0x40,0x6D) from a file. It's a 480x272 display so loading the image takes an appreciable time, aorund half a second.
I wanted an auto-repeat feature for some touchscreen buttons that are used to set the date.
So on TouchPress, I set a downcounter to 500. The downcounter is decremented at 1kHz and when it gets to zero, if I read TouchMoving from the screen (without an intervening TouchRelease) I pretend that the user has touched the screen again, and set the downcounter to 250.
My problem is that the touch which calls up the screen may only last about 200ms, but after the new screen has been drawn (500+ms later) I call GetTouchStatus and it returns TouchMoving. Clearly the screen has buffered the touch info. Even if I call GetTouchStatus again immediately I still get TouchMoving. I have to call GetTouchStatus, wait 10ms (5ms is not enough) and then call GetTouchStatus again to get the true current TouchStatus.
I think your manual could do with some explanation on this point, it took all morning to figure out.
Cheers,
Mark
Comment