Remap Gaming Buttons Within Xfce


meandu229 said:
how can i remap the gaming butttons to other things

thanks

To what things? You mean as hotkeys for apps or remap the layout of the keyboard / buttons?
 
Last edited:
meandu229 said:
how can i remap the gaming butttons to other things

thanks

Check the link in my signature if you want hotkeys.
 
Last edited by a moderator:
ED, this guy has a broken keymat. Here is the quote from the other thread:
meandu229 said:
how can i map the y key to one of the gaming buttons, im moving house and dont wanna send m pand away till ive moved and its gettting annoying not having it. i know its possible and searched but couldnt find
 
Last edited by a moderator:
meandu229 said:
my y key is broken till i send it back id like to map "gaming a" to letter y

Ah, okay.
There is a hidden file within your home directory... it's called .pndxmodmap (or similar). You can edit that one.
The gaming buttons are mapped to PG UP, PG DOWN, PRIOR and NEXT.

You shouldn't change that, otherwise your games won't work. BUT you can set it up so that SHIFT + a gaming button does an Y.
The first mapping in that file is always without shift, the second one with shift.
 
Last edited:
EvilDragon said:
There is a hidden file within your home directory... it's called .pndxmodmap (or similar). You can edit that one.
The gaming buttons are mapped to PG UP, PG DOWN, PRIOR and NEXT.

You shouldn't change that, otherwise your games won't work.
I was under the impression that the games and emulators would bind to raw keycodes directly rather than the mapped keysyms.
 
Last edited by a moderator:
meandu229 said:
cheeers ed, just tried and somehow managed to remove contents from file, will some nice person upload theirs please

Get it here

Caine said:
EvilDragon said:
There is a hidden file within your home directory... it's called .pndxmodmap (or similar). You can edit that one.
The gaming buttons are mapped to PG UP, PG DOWN, PRIOR and NEXT.
You shouldn't change that, otherwise your games won't work.
I was under the impression that the games and emulators would bind to raw keycodes directly rather than the mapped keysyms.

That depends on the developers, and I guess most use the SDL and therefore the keymap.
 
Last edited:
Sorry to hi-jack, but it's kind of relevant...how exactly do I set up xfce to use L for left-lick and R for right-click (and preferably permanently; my nubs don't work so well...)?
 
Azure said:
Sorry to hi-jack, but it's kind of relevant...how exactly do I set up xfce to use L for left-lick and R for right-click (and preferably permanently; my nubs don't work so well...)?

Anubber question please (sorry could not resist)

+1 .. Althought I love the fact you can use the right nub for these functions .. I too would prefer to map these to either R and L or perhaps the AYB keys (A left click / Y double click left / B right click)
 
Last edited by a moderator:
meandu229 said:
I changed these
keycode 88 = End XF86_Switch_VT_2 End XF86_Switch_VT_2
keycode 89 = Next XF86_Switch_VT_1 Next XF86_Switch_VT_1
to
keycode 88 = End y End y
keycode 89 = Y Next Y

And no luck, ive rebooted, do I need to do anything else?

Hmm, is the file named correctly?
 
Last edited:
I too am interested. Would love A left click, B right, I really love this bit of kit,The form factor is sweet,I just want things where I want them now.
 
I would like to map like thus..

R for shift (it's pretty useless on the left for me)
B for Enter
X for right click
A for left click

Any way to do that?
 
As said: Yes, it is possible by editing the hidden .pndxmodmap file. However, games won't recognize the buttons then anymore...
Should I create a quick keyboard switcher script?
 
EvilDragon said:
As said: Yes, it is possible by editing the hidden .pndxmodmap file. However, games won't recognize the buttons then anymore...
Should I create a quick keyboard switcher script?

Doesn't that depend on the software?
If they read the raw scancodes or if they read via X or whataver
 
Last edited by a moderator:
EvilDragon said:
As said: Yes, it is possible by editing the hidden .pndxmodmap file. However, games won't recognize the buttons then anymore...
Should I create a quick keyboard switcher script?

Yes, I would love that. Thanks Ed.

Can you not set pnd_run to change the keyboard profile on loading games?
 
Last edited by a moderator:
A warning for those who start playing with modifying the keymaps. Be careful with mapping symbols onto shift+key as they can shadow the shift+symbol combination.

An example on the Pandora keyboard is shift+backspace being mapped onto del. This shadows the shift+del key combination (which prevents one from deleting without use of the trash bin).

It would have been safer to map del onto Fn+backspace and insert onto e.g. Fn+Enter.
 
Back
Top