Keybinds

Keybinds

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
MasterBel2
Posts: 347
Joined: 11 Apr 2016, 12:03

Keybinds

Post by MasterBel2 »

I have a gaming keyboard, and want to use it. Is there any way I could assign shortcuts for something like the repeat-on button? How would I do that?

Thanks in advance!
User avatar
prandipadaro
Posts: 98
Joined: 19 Oct 2011, 22:38

Re: Keybinds

Post by prandipadaro »

The simple way for me is edit your uikeys.txt file
if you are on linux ubuntu you can find it in the folder .spring inside your home
this line will be an example:

Code: Select all

bind		button		repeat 
if your problem is mapping your gaming keyboard, always on ubuntu, i use xev to get the keycode of a button, and in this case you must add a line like this before the bind line:

//make button start ( this line is only a comment)

Code: Select all

keysym 		     	start 	                          	0xffeb
command          		arbitrary name            	code get by xev or other software
User avatar
MasterBel2
Posts: 347
Joined: 11 Apr 2016, 12:03

Re: Keybinds

Post by MasterBel2 »

Thanks. Am on a mac, but there is a uikeys.txt file in the said location (at least the mac equivalent anyway). I will play around a bit and then come back If I can't work anything out.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Keybinds

Post by Jools »

When in the game, type

Code: Select all

/keydebug
and then press the said button. The corresponding keycode will be typed out in the chat. Type /keydebug again to get out of this mode.

Use that keycode in uikeys.txt, and also see that you don't have multiple files called uikeys.txt if you have problems (spring can look for that file in many folders). Hope this helps.
Post Reply

Return to “Help & Bugs”