I know.. I know.. it's me yet again.
Now before you jump to the conclusion "it's not GapiDraw," please keep in mind I thoroughly tested this time, and even reproduced the results on the samples provided with GapiDraw itself.
I honestly didn't notice this until it caused a weird bug in my app that wasn't present in the PC version. I used the debugger to step through what was going on, and it turned out it was calling the KeyUp event twice. I decided to look through my code, and nothing was wrong. I then decided to start up a sample app (TileDemo in this case) and use the same debugging techniques. It was reproduced in the sample application.
Here's what I did;
- I set a break point on the KeyUp and KeyDown events located in myapplication.cpp.
- I ran the TileDemo in debug mode for Pocket PC 2003 Device.
- I hit a button (any one, it doesn't matter) on my pocket pc.
- The debugger stopped on the KeyDown event. I went to the Debug menu and clicked "Go" so it would continue to execute. It immediately went straight back to the KeyDown event. I DID NOT press another key, nor has it even stopped at the break point of the KeyUp event.
- The same was repeat for the KeyUp event.
This is only with KeyUp and KeyDown. Stylus events were fine.
Any idea what could be happening? Thanks for your time.
EDIT:
It's happening at the CGapiApplication level. The WM_KEYDOWN msg is sent twice to WindProc. No idea why either. I did notice you had a safe guard against key repeat events, but in this case it's not stopping the double event.
Does anyone have an Axim x50v to double check my results and confirm this is a bug?
Now before you jump to the conclusion "it's not GapiDraw," please keep in mind I thoroughly tested this time, and even reproduced the results on the samples provided with GapiDraw itself.
I honestly didn't notice this until it caused a weird bug in my app that wasn't present in the PC version. I used the debugger to step through what was going on, and it turned out it was calling the KeyUp event twice. I decided to look through my code, and nothing was wrong. I then decided to start up a sample app (TileDemo in this case) and use the same debugging techniques. It was reproduced in the sample application.
Here's what I did;
- I set a break point on the KeyUp and KeyDown events located in myapplication.cpp.
- I ran the TileDemo in debug mode for Pocket PC 2003 Device.
- I hit a button (any one, it doesn't matter) on my pocket pc.
- The debugger stopped on the KeyDown event. I went to the Debug menu and clicked "Go" so it would continue to execute. It immediately went straight back to the KeyDown event. I DID NOT press another key, nor has it even stopped at the break point of the KeyUp event.
- The same was repeat for the KeyUp event.
This is only with KeyUp and KeyDown. Stylus events were fine.
Any idea what could be happening? Thanks for your time.
EDIT:
It's happening at the CGapiApplication level. The WM_KEYDOWN msg is sent twice to WindProc. No idea why either. I did notice you had a safe guard against key repeat events, but in this case it's not stopping the double event.
Does anyone have an Axim x50v to double check my results and confirm this is a bug?