[MPlayer-cygwin] gl2 and mouse events

Daniel Jönsson nightrun at hotpop.com
Wed Jul 14 06:11:33 CEST 2004


> Hi,
> 
> > I was sitting here wondering if gl2 has any way for mouse inputs? It ignores all mouse events 
> > for me atleast.. Dont know if its just me but I doubt it somehow.. If it doesn't, then are there 
> > any plans to add such a thing? gl2 is a lot nicer than directx in my eyes due to not having the 
> > border around the video window thus taking less space on the desktop. It also uses a lot less 
> > cpu than directx so It would be really nice if it had any way to react on mouse events.
> 
> Do you mean something like the attached patch does? Mostly copied from 
> vo_directx.c, but you will have to hold CONTROL for the left mousebutton 
> to work in non-fullscreen.
> 
> Greetings,
> Reimar Döffinger
> 

>From looking at the diff file I think that's what Im looking for but I get undeclared identifiers 
when I try to compile it after patching though.

w32_common.c: In function `WndProc':
w32_common.c:62: `MOUSE_BTN0' undeclared (first use in this function)
w32_common.c:62: (Each undeclared identifier is reported only once
w32_common.c:62: for each function it appears in.)
w32_common.c:73: `MOUSE_BTN1' undeclared (first use in this function)
w32_common.c:77: `MOUSE_BTN2' undeclared (first use in this function)
w32_common.c:83: `MOUSE_BTN3' undeclared (first use in this function)
w32_common.c:85: `MOUSE_BTN4' undeclared (first use in this function)
make[1]: *** [w32_common.o] Error 1
make[1]: Leaving directory `/Mplayer/main/libvo'
make: *** [libvo/libvo.a] Error 2

I have very little knowledge on actual c programming so I don't know much about what that 
means. I think it means that MOUSE_BTN# has to be declared somehow but.. And also.. Why 
will it be needed to hold CONTROL for left mouse button when not in fullscreen? Will it work 
without when I do use fullscreen? And also.. Will this use the input.conf for action to take on 
the mouse events or is it staticly in the diff? I think it would read the input.conf but as I said.. 
Im really not good at reading c code.

Daniel Jönsson




More information about the MPlayer-cygwin mailing list