[MPlayer-dev-eng] I have included native joystick support into mplayer- patch available soon

Rick rick at topaz.ne.mediaone.net
Sun Jan 13 20:39:42 CET 2002


Well.. a broken water heater is keeping me here for another hour or so..  
so .. I've made the patch now.

This patch add's joystick support if HAVE_JOYSTICK is defined at compile time.
I have set it up to support 2 axes and 4 buttons.. more buttons are just 
ignored.  the joystick controls are are follows (i'm just listing the 
equivalent keyboard command)
left-left
right-right
up-up
down-down
button 1- lower volume
button 2- raise volume
button 3 -pause
button 4 - quit

SOMEONE NEEDS TO ADD JOYSTICK STUFF INTO THE CONFIGURE SCRIPT
I  do not know how to add the stuff to the configure script.. so please add 
it for me.  Joystick support needs to have HAVE_JOYSTICK defined.


On Sunday 13 January 2002 01:59 pm, you wrote:
> I have added the joystick support, built it, and tested it.  It is all
> working perfectly.  I had to change all uses of KEY_UP KEY_DOWN, etc  (all
> definitions in linux/keycodes.h) to MP_KEY_UP, etc.
>
> I have to go out right now, but I should be able to make the diffs later
> tonight so they can be included.
>
> I have not made any changes to configure to define HAVE_JOYSTICK
>
> I used #ifdef HAVE_JOYSTICK for the code I added to mplayer.  This
> definition will need to be set by the configure script for it to all work
> properly.. i have just changed config.mak to add -DHAVE_JOYSTICK to the
> compiler options for my own testing
>
> I have never done anything with configure scripts.. so I have no clue here
> to begin.. I'm sure it will be simple for someone on this list to do.
>
> also, I have not made any changes to the docs.. I can probably do this
> within a couple of days unless someone else does it sooner
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-joystick.patch
Type: text/x-diff
Size: 20969 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020113/5e24e60e/attachment.patch>


More information about the MPlayer-dev-eng mailing list