windows mobile 6.5 Gestures and DirectDraw
- by ArjanW
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?