M
mcm
I'm stuggling with a seemingly simple issue.
Inside a C# (Windows CE application, I have a function that handles a measurement.
During the measurement, I need to check the keyboard to see if the Escape (27) key has been hit and I can't find a way to do this.
I'd like to look through any buffered keystrokes - remove the ones I'm not interested in and look for an "escape", but I'm not finding any info.
private Boolean HandleMeasurement()
{
Boolean bMeasuring = true;
Boolean bAbort = false;
while (SystemIsMeasuring() && (!bAbort))
{
// load the available data
GetMyData();
// test for keyboard input, if cancel was pressed set bAbort = true
bAbort = IDontHaveAClueHowToDoThis();
}
}
My question: what should the "IDontHaveAClueHowToDoThis()" function look like?
Thanks,
- mcm
Inside a C# (Windows CE application, I have a function that handles a measurement.
During the measurement, I need to check the keyboard to see if the Escape (27) key has been hit and I can't find a way to do this.
I'd like to look through any buffered keystrokes - remove the ones I'm not interested in and look for an "escape", but I'm not finding any info.
private Boolean HandleMeasurement()
{
Boolean bMeasuring = true;
Boolean bAbort = false;
while (SystemIsMeasuring() && (!bAbort))
{
// load the available data
GetMyData();
// test for keyboard input, if cancel was pressed set bAbort = true
bAbort = IDontHaveAClueHowToDoThis();
}
}
My question: what should the "IDontHaveAClueHowToDoThis()" function look like?
Thanks,
- mcm