PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Handling stylus events

Hi, Edge.

I'm now testing stylus input on PocketPC and can't find the way to get point when stylus releases or moves.

OnStylusUp() and OnStylusMove() provide POINT pnt the same as point which comes with OnStylusDown() in all situations, event when I tap, move stylus to other point and release it. In all situations point is the same :(

Getting point through E_INPUTEVENT gives the same result.

I'm using eedge 3.0, ppc2003-arm_vc2005 library, Visual Studio 2005 and default PPC2003 emulator.

Please, help me.
Hi Nomad,

That's sounds very strange, can you tell me which Pocket PC you're testing with?

Perhaps you can create a small test that polls for the mouse position using ecd.input->GetClickPosition() and the native Win32 function GetCursorPos(). Would you like to display the x/y coordinates of both values and see if there are any differences? Also, do you receive any OnStylusMove events at all?
Hi, Edge!

I had tried to call GetCursorPos() but it returned FALSE with GetLastError() code - 120 (This function is not supported on this system.).

But then I installed WM5 emulator and tested on it. And there was no sign of that strange behaviour, which I had on WM2003 emulator. Everything was fine :)

So, then I made virtual reboot on WM2003 emulator device and it cures it too :lol:

So It was just an emulators strange behaviour, not EdgeLib. Sorry for bothering :oops:

Best regards, Nomad.