Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

27139 Posts in 1556 Topics- by 2037 Members - Latest Member: Porkley

June 19, 2013, 05:13:34 PM
  Show Posts
Pages: [1]
1  Super Meat Boy / Tech Support / Re: redefine gamepad buttons Linux on: October 08, 2012, 11:33:21 AM
looks like the only important parameters of jscal are missing in your version my manpage has two additional entries:
Code:
  -q             --print-mappings    Print the current axis and button
                                       mappings as a jscal command line
  -u <n_of_axes,axmap1,axmap2,...,
      n_of_buttons,btnmap1,btnmap2,
      ...>       --set-mappings      Sets axis and button mappings to the
                                        specified values
what OS(version) do you have?
2  Super Meat Boy / Tech Support / Re: redefine gamepad buttons Linux on: June 22, 2012, 03:40:59 AM
btw this also works in Bastion and all other games that use SDL to do input.
3  Super Meat Boy / Tech Support / Re: redefine gamepad buttons Linux on: June 12, 2012, 01:42:24 PM
finally I found out what to do

Code:
jscal -u 7,0,1,5,2,16,17,40,12,290,289,291,288,294,295,296,297,298,299,292,293 /dev/input/js0
export SDL_JOYSTICK_DEVICE=/dev/input/js0
/opt/supermeatboy/SuperMeatBoy

First line does a remapping of the buttons and axis so that it matches the button and axis definitions of an xb360 controller as good as possible. Btw 7 means 7 axis, followed by seven axis ids, then a 12 for twelve button ids. You can should change that if your controller is not a Sony Dualshock 2 controller with adapter.
Second line tells SDL (used by super meat boy) to use that device with that buttonmap for input (the default is somehow different).
third line starts the game.

If you are interested in developing your own buttonmap for other controllers, feel free to post them here. jstest is your friend.

Edit: jscal -q /dev/input/js0 shows your current button mapping. here "man jscal" is your friend.
4  Super Meat Boy / Tech Support / Re: redefine gamepad buttons Linux on: June 12, 2012, 05:24:14 AM
ok, I found a cfg file in the installation folder of super meat boy, but there were only two button definitions, special and jump. This is the button lookup table to play the game with a Dualshock2 controller.

Code:
ID  DS2       XB36 
 0  triangle  A
 1  circle    B
 2  cross     X
 3  square    Y
 4  L2        Left Shoulder Button
 5  R2        Right Shoulder Button
 6  L1        back
 7  R1        start
 8  SELECT    left stick button
 9  START     right stick button
10  L3
11  R3

a config file to redefine this mapping would help very much.
5  Super Meat Boy / Tech Support / redefine gamepad buttons Linux on: June 10, 2012, 03:31:29 AM
Hi, I am here because I would like to know how to change the gamepad button definitions in the Linux version. The options menu doesn't support any options to do that  . Can't believe nobody asked the exact same question yet, but my search was unsuccessful.

btw
"Looking for help for bugs that prevent me from playing, requires registration in the Forum"
"Registration in the Forum asks questions about the game which requires playing the game"
do you see the deadlock?
Pages: [1]
Theme orange-lt created by padexx