Controller buttons remappable?

A place to ask all newbie questions and not get flamed, though you will get beaten down if you post a newbieish question outside of these walls.
Post Reply
matthijs0
Newbie
Posts: 4
Joined: Sat Jan 15, 2011 10:09 am

Controller buttons remappable?

Post by matthijs0 » Sat Jan 15, 2011 10:14 am

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,

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Re: Controller buttons remappable?

Post by ShALLaX » Fri Jan 21, 2011 7:08 pm

Google is a wonderful thing :)

This seems relevant: http://ubuntuforums.org/showthread.php?t=903858
The original Xbox adaptation of Gentoo

matthijs0
Newbie
Posts: 4
Joined: Sat Jan 15, 2011 10:09 am

Re: Controller buttons remappable?

Post by matthijs0 » Sat Jan 22, 2011 3:18 pm

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.

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Re: Controller buttons remappable?

Post by ShALLaX » Sat Jan 22, 2011 8:34 pm

Give this a try:
rm -rf /etc/make.profile && ln -sf /usr/portage/profiles/default/linux/x86/10.0 /etc/make.profile
The original Xbox adaptation of Gentoo

matthijs0
Newbie
Posts: 4
Joined: Sat Jan 15, 2011 10:09 am

Re: Controller buttons remappable?

Post by matthijs0 » Sun Jan 23, 2011 9:42 pm

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.

matthijs0
Newbie
Posts: 4
Joined: Sat Jan 15, 2011 10:09 am

Re: Controller buttons remappable?

Post by matthijs0 » Sun Mar 20, 2011 4:20 pm

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)?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests