Here is the solution I hacked up a while back. It simply disables the joystick plugin whenever you play a game. I have provide my modified joystick plugin that allows you to use with more than just the first two axis. You can work from there if you want to modify the version that is included with freevo by default. I use this with a pair of Logitech Wingman wireless gamepads without any problems. Simply replace the joy.py in your <freevo dir>/src/plugins and your game.py in your <freevo dir>/src/games with the attached ones. Then place something similar to the following in your local.conf and you should be in business.
<snip>
JOY_CMDS = {
'axis 1 neg' : 'UP',
'axis 1 pos' : 'DOWN',
'axis 0 neg' : 'LEFT',
'axis 0 pos' : 'RIGHT',
'axis 6 neg' : 'UP',
'axis 6 pos' : 'DOWN',
'axis 5 neg' : 'LEFT',
'axis 5 pos' : 'RIGHT',
'button 1' : 'SELECT',
'button 4' : 'EXIT',
'button 7' : 'SELECT',
'button 10' : 'EXIT',
'button 2' : 'PAUSE',
'button 6' : 'DISPLAY',
'button 3' : 'ENTER',
'button 8' : 'DISPLAY',
'button 11' : 'ENTER',
'button 6' : 'MENU',
}
</snip>
These have been tested with Freevo 1.5rc2. I don't know if the originals
have been modified much in cvs since then. As always YMMV :)
-Karee Brown
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jan Grewe
Sent: Saturday, May 29, 2004 5:08 AM
To: [EMAIL PROTECTED]
Subject: AW: AW: [Freevo-devel] Joystick Support
Hey Jeff,
That idea is GREAT! I'm not a fit in python so i can't help you out, but
i'm
sure one of the guys here could hack this up with ease ;-)
/jan
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Jeff
Oegema
Gesendet: Samstag, 29. Mai 2004 00:17
An: [EMAIL PROTECTED]
Betreff: Re: AW: [Freevo-devel] Joystick Support
Hello Jan,
It seems (from a cursory glance at the code) like you could hack a catch
into the polling function in the joystick support to use one of the
joystick
keys (as my joystick has 10) to flip between controlling freevo or the
game.
Maybe I'll take a look into doing this when I have a free moment.
Jeff
Jan Grewe wrote:
>Hi jeff,
>IIRC you can either control freevo or mame with the joystick, i had to
>find out the hard way ... Or you use 2 joysticks ;-)
>
>Cheers,
>
>/jan
>
>-----Urspr�ngliche Nachricht-----
>Von: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Im Auftrag von Jeff
>Oegema
>Gesendet: Freitag, 28. Mai 2004 17:10
>An: [EMAIL PROTECTED]
>Betreff: [Freevo-devel] Joystick Support
>
>Hello,
>
>Just a question and perhaps the wrong forum to ask, but is it possible
>to use the same joystick/wireless game pad to control freevo and play
>mame games and such? It appears that freevo still receives the control
>buttons when a game is active thus causing conflicts of control.
>
>Is there an easy way around this problem?
>
>Thanks,
>
>Jeff
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g Get certified on the
>hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>Freevo-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/freevo-devel
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g Get certified on the
>hottest thing ever to hit the market... Oracle 10g.
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
>_______________________________________________
>Freevo-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/freevo-devel
>
>
>
--
Jeff Oegema
CEO Scionics Computer Innovation GmbH
http://www.scionics.de
Phone: +49 351 312 3011
Fax: +49 351 312 3015
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=ick
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=ick
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel
joy.py
Description: Binary data
game.py
Description: Binary data
