Posts: 433
Joined: Sat Aug 18, 2012 5:58 pm

Maldita Castilla and JOY2KEY

Sat May 21, 2016 10:27 am


Has anybody succeeded in making this half-baked port (no joystick support...) of an AWESOME game with a joystick using joy2key?

So far my joy2key lauch script for Maldita Castilla looks like this (for terminal mode):

Code: Select all

joy2key -dev /dev/input/js0 -terminal -buttons z x -thresh -16383 16383 -16383 16383 -16383 16383 -16383 16383 -16    383 16383 -16383 16383 & ./MalditaCastilla

The thing is, keys seem to be sent to the TTY well: I can send z's and x's to the TTY after I quit Maldita Castilla, but in the game these buttons are ignored as without using joy2key.
I have also tried the -rawconsole option, but I get strange ASCII codes instead of the intended letters, z and x.

This would be what I am trying for raw console mode:

Code: Select all

./joy2key -dev /dev/input/js0 -rawconsole -buttons 0x44 0x45 -thresh -16383 16383 -16383 16383 -16383 16383 -16383 163    83 -16383 16383 -16383 16383 & ./MalditaCastilla
Any ideas?

Posts: 51
Joined: Sun May 18, 2014 12:19 pm

Re: Maldita Castilla and JOY2KEY

Sun May 22, 2016 11:54 am

I've not had any luck getting joy2key to work on the pi and I find it far too arcane to troubleshoot.

I've been using Linux Joystick Mapper to emulate the mouse in DOS games. I put together a tutorial a while ago at the RetroPie forum to get the mapper set up and running. The documentation for the app is thorough in case there's anything I missed.

I've not managed to get version 0.3 to work on my pi 2 yet but version 0.2 works fine.

Return to “Gaming”