Video and mouse events
Carsten A. Arnholm
arnholm at offline.no
Thu Sep 20 14:17:21 PDT 2007
Hi,
I am woring on a wxWidgets 2.8.4 webcam application that runs under Windows
(XP) and Linux (Kubuntu 7.04). Using MS Visual Studio 2005 Express compiler
on XP and GCC on Kubuntu, both using Code::Blocks as IDE. This application
also uses some platform dependent code for video rendering, i.e. DirectDraw
on Windows and Video4Linux on Linux. Working well.
I have started to make some event handlers for picking objects in the
streaming video, i.e. essentially just wxEVT_LEFT_DOWN mouse event in the
video area. The idea is to take the mouse coordinates and use that for real
time processing of the info in the video frame.
The mouse event works fine on both platforms as long as no video is
streaming. When video is streaming, it doesn't work on Windows, only on
Linux. So I guess DirectDraw is to blame somehow.
I have tried to search around for clues, but I haven't really found any good
leads, just lots of references to people who seem to have similar issues.
Maybe someone here have seen the same problem and know how to enable mouse
events for a window rendering DirectDraw graphics?
Thanks for any help.
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list