Page 1 of 1

Controller buttons remappable?

Posted: Sat Jan 15, 2011 10:14 am
by matthijs0
Hello,

Is there a way to remap/bind buttons/thumbsticks of the controller (like select as ESC)? Or to let it partially act as a joypad/keyboard (so the game can catch some buttons as joypad/keyboard buttons and the thumbstick and A + B for the regular mouse). Because now the left thumb act as a mouse which is OK, but the DPAD does it as well, but I would like to have it matched with the UP, DOWN, LEFT and RIGHT of the keyboard.

I got unreal tournament (software rendering, not 3d acceleration) working on gentoox, but I want to make this game more controllable by the controller / pad (now I have to hit ESC using VNC when I want to return to the main menu in stead of just hitting the black select button on the pad for example).

Thank you,

Re: Controller buttons remappable?

Posted: Fri Jan 21, 2011 7:08 pm
by ShALLaX
Google is a wonderful thing :)

This seems relevant: http://ubuntuforums.org/showthread.php?t=903858

Re: Controller buttons remappable?

Posted: Sat Jan 22, 2011 3:18 pm
by matthijs0
Thank you. I tried installing python-xlib and python-pygame using emerge/portage in order to run the ./jkeys xxx yyy script but it gave some errors: "/etc/make.profile is not a symlink" and this probably prevents updating/installing the python packages. I do not have a profile apparentely? I did emerge --sync but that is still busy.

Are the PORTDIR="/scratch/portage" PORTDIR_OVERLAY="/usr/share/gentoox/portage" folders OK (inside make.conf)?

Or is there a simpler plan of action?

I'm not that familiair with gentoox.

Re: Controller buttons remappable?

Posted: Sat Jan 22, 2011 8:34 pm
by ShALLaX
Give this a try:
rm -rf /etc/make.profile && ln -sf /usr/portage/profiles/default/linux/x86/10.0 /etc/make.profile

Re: Controller buttons remappable?

Posted: Sun Jan 23, 2011 9:42 pm
by matthijs0
I will give that a try next weekend and have a more in-depth look into the emerge/ebuild thing (and installing these packages including all its dependencies because I think that might be the problem now, I probably messed up the portage dirs also so I think I need a new install).

Maybe I will have a look at 'modprobe joydev' and 'modprobe joydev' in combination with js2mouse and jskeys for an alternative because that's sounds very logical too.

Re: Controller buttons remappable?

Posted: Sun Mar 20, 2011 4:20 pm
by matthijs0
I copied python-xlib-0.15_rc1.ebuild and pygame-1.9.1.ebuild to their respective dirs in the overlay dir (/usr/share/gentoox/portage; dev-python/pygame and dev-python/python-xlib) as specified in make.conf. Next, I ran emerge -u python-xlib-0.15_rc1.ebuild in its dir in the portage tree, but it gave this same error again.

I don't have the /usr/portage/profiles/default/linux/x86/10.0 dir. Should I emerge sync first to get it (it gives an error that it is not a vlid symlink and that it will prevent most merges)? Or will I download the whole tree then? Because I want to keep updating the amount of files to a minimum (only those necessary). Should I use the -uD argument (deep update)?