capturing mouse events

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

capturing mouse events

Postby gkellum » Fri Jun 25, 2010 5:31 pm

I've been trying to capture mouse events in the browser window. I modified the WinProc method in cefclient so that I could process WM_MOUSEMOVE events, but I noticed that very few events were actually arriving in this block. Is the browser being created in a separate window than the main window being created in cefclient? B/c it seems like only mouse events that occur around the edge of the browser are arriving at cefclient's WinProc method. Is there any easy way to get the mouse events in the browser?
gkellum
Newbie
 
Posts: 2
Joined: Fri Jun 25, 2010 5:20 pm

Re: capturing mouse events

Postby lodle » Sun Jun 27, 2010 1:24 am

If you look in the file webwidget_host.cc in libcef_static you can catch the mouse events there and route them back via the event handler all ready set up in cef.
lodle
Techie
 
Posts: 32
Joined: Tue Jun 01, 2010 4:36 am

Re: capturing mouse events

Postby gkellum » Mon Jun 28, 2010 2:59 pm

Cool. Thanks for the tip. I'll post a patch when I'm done. Maybe, others would also find it useful to have CefHandler expose mouse events.
gkellum
Newbie
 
Posts: 2
Joined: Fri Jun 25, 2010 5:20 pm

Re: capturing mouse events

Postby lodle » Fri Jul 02, 2010 2:02 am

Ive all ready done this as i wanted mouse back and forward events. Want my patch?
lodle
Techie
 
Posts: 32
Joined: Tue Jun 01, 2010 4:36 am

Re: capturing mouse events

Postby tompaz » Mon Jul 05, 2010 8:30 pm

can send to me your patch?thanks
my email is ptompaz@gmail.com
tompaz
Techie
 
Posts: 10
Joined: Thu Jun 17, 2010 10:15 pm

Re: capturing mouse events

Postby emerick » Sun Dec 19, 2010 8:25 pm

lodle,

Is there any chance you can post your patch on here? I'm looking for something similar and perhaps others are as well.

Thanks,

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA

Re: capturing mouse events

Postby lodle » Thu Dec 23, 2010 9:15 am

lodle
Techie
 
Posts: 32
Joined: Tue Jun 01, 2010 4:36 am

Re: capturing mouse events

Postby emerick » Fri Dec 24, 2010 8:06 am

Thanks, must have missed that!

Emerick
emerick
Expert
 
Posts: 154
Joined: Sun Feb 21, 2010 7:57 pm
Location: Belmont, MA


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 84 guests