Keymapping utiltity

RejoysTick is a program that will map keyboard key events to your gamepad, thus giving you "gamepad support" for games that doesn't even have gamepad support. It's licensed under the GPL.

License: free
Requirements: Since it uses Gtk, SDL and X a lot of *nixes should run this. Please try with different ones since I've only tried with GNU/Linux.

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
noyesnonononoyes
Suggest an update

Comments

I used qjoypad for epsxe, xmame and some other games, I really liked it...
Re: um, what's wrong with qjoypad posted by anonymous on Mar 20 2007 4:24 PM
As stated on the site...
qjoypad - A gui based qt-program that does what RejoysTick does and more. The dependency issue with qt could be a problem (at the time I tested it couldn't compile on ubuntu because a qt package was broken)
Re: um, what's wrong with qjoypad posted by Thunor on Mar 21 2007 4:35 AM
Look here -> http://ubuntuforums.org/showthread.php?t=147918

I think this SDL project is a good idea. Exactly how do you pass SDL joypad events to X? I'd be interested to know.
Re: um, what's wrong with qjoypad posted by samel_tvom on Mar 21 2007 7:30 AM
Feel free to check the code of version 0.3 (which now uses SDL). It's not that you pass the SDL events to the X server, you map SDL events to X key events. The struct keymap_t in keylist.h and the assign_keys function in xrelated.c will probably show you how.
Re: um, what's wrong with qjoypad posted by anonymous on Mar 21 2007 2:05 PM
sounds similar to joy2key
never tested but... This is really a great idea!
Well it works ok with buttons but axes are unuseable. Either it doesn't work or I get axis0 0 to +32767 (mapped to right cursor key) stuck going right.

Once running in the background it remains there. Shouldn't there be a -u uninstall option?

Needs a graphical GUI for setting-up the controls.

I've been adding joystick support to an SDL game and I've learnt a lot about joysticks over the last few weeks. My MS SideWinder Game Pad Pro for example - which I'm glad now I have for testing reasons - has a direction pad that is analogue in a limited way. Sometimes it behaves as you would expect: pressing left (axis 0) fires values between -32767 and 0, other times it fires -32767 and then straight back to 0! The point is if you rely on a low value to "release" the axis press that doesn't include 0 you end up with stuck controls. I mention this because maybe you are assuming an analogue axis will fire lots of low values that you can use to "release" the press.

I am interested in seeing this project progress .
Re: Interesting posted by Thunor on Aug 13 2007 11:06 PM
Something that initially puzzled me about RejoysTick was that SDL apps lose input when losing the focus but now I know that SDL grabs joystick input by default. In fact it doesn't appear you can un-grab it.

The RejoysTick website states this project does what [the developer] wants so I don't think it's going to get any further.
Re: Interesting posted by samel_tvom on Aug 14 2007 10:34 PM
Well, actually that doesn't depend on RejoysTick. Since RejoysTick is like a mini keyboard or something, it behaves (mostly) like one. So if an SDL app loses input it won't get input from the keyboard either. Or have I misunderstood you?
From the project's website:
Hello users of rejoystick!

I'm taking a break (well, have already taken a break and I'm extending it :) so I won't work on RejoysTick for a while since I'm going to the Central African Republic for ten months and can't rely on internet access. However, if I get really bored and don't have stuff to do maybe this'll make me work more on the program. One never really can tell.

As for now, my goals for the next release is the following:
  • Still launching RejoysTick from command line as before but now the configuration will be done by another program, that is written in gtk or qt or tcl/tk. The point of that is that some people don't like heavy dependencies and in this way one could write his RejoysTick config utility using his favorite toolkit. This doesn't mean one can not use a CLI to config the RejoysTick file(s). When this will happen I would really like it if people could help write config utilities in gtk or qt. If somebody is skilled in this, let me know.
  • Fixing that damn axis problem :) The reason I haven't fixed it is simply that I only have D-pads on my gamepad so I don't really need the feature. But I'll ge one...eventually!
If somebody feels like hacking away and making cool improvements, send me a mail with the program and if it's cool I'll link it from the website. This way there will still be development will I'm away.

I appreciate any comments!

Regards, Samuel
Back from Africa and ready to code! I have already done some work, built a new gui in gtk. Yeah, I know it's kind of a ripoff of qjoypad but that's okay because I'm mostly coding for the fun of it. And I thought it'd be easier to remake rejoystick then to remake qjoypad to suite my needs.

In the future I will include an option to compile without the gui hence getting rid of horrible dependencies. But then you have to manually edit the layout file with a text editor.

Anyway, hope you'll like it!

Samuel

I just tried it with my crappy game pad on my computer game and it worked. The only problem I had other than not reading the instructions was that if you change the config after it is running you need to kill the daemon by hand. It would be nice to add some switches so that you could tell it to reload the config file. Another thing is if it is already running as daemon it should not start another process until the one already running is killed/stopped. I ended up with three running and that does not work very well.

You mentioned about building it without the GUI maybe you could have a separate build target in the Makefile that only builds the daemon part and a sample config file for people to get started with. That way they don't need the GUI

Note to self: add joystick support to my game so this is not required.

Log in or register to rate this game or post a comment.