windows mobile 6.5 Gestures and DirectDraw

Posted by ArjanW on Stack Overflow See other posts from Stack Overflow or by ArjanW
Published on 2010-03-30T06:30:23Z Indexed on 2010/03/30 6:33 UTC
Read the original article Hit count: 450

I'm trying to build a UI using directdraw in c#. For this im using a DirectDrawWrapper as sugested here.

My initial tests setting up the screen work perfectly. But now i'd like to incorporate gesture recognition into the UI. So i instantiate a GestureRecognizer and tie it to the _form which also gets passed to the DirectDrawGraphics constructor,

form = new Form();
_form.show();
_graphics = new DirectDrawGraphics(_form, CooperativeFlags.Fullscreen, BackbufferMode.Any);
gestureRecognizer = new GestureRecognizer();
gestureRecognizer.TargetControl = _form;

Pasting the whole DirectDrawWrapper code might be a bit to much, so let me try to formulate a question.

I guess directdraw talks directly to the video memory, as it should. But then my form wont receive any messages, thus any eventhandlers i'v tied op to the GestureRecognizer wont be fired. How can i still receive any messages from the touchscreen?

© Stack Overflow or respective owner

Related posts about windows-mobile

Related posts about gesture-recognition