A little script to use the Xbox 360 controller on Linux

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
Frash
Posts: 1
Joined: Fri Nov 15, 2013 10:45 pm

A little script to use the Xbox 360 controller on Linux

Post by Frash »

Hello people!

I've written a little xboxdrv script to play Grim Fandango through ResidualVM on Linux using an Xbox 360 controller.
Maybe it's not a full solution to the controller support problem, but for someone it might be a more comfortable temporary solution than using the keyboard.

I've set the script up to use both the left analog stick and the d-pad for movement with camera-relative mode in mind, but I personally preferred to play with character-relative mode and using the D-Pad alone for maximum precision.

I've also mapped the other buttons as follows:
  • - Left shoulder button: examine
    - A: use, select, enter
    - B: pick, put away
    - X: run
    - Y: inventory
    - Start: pause
    - Back: Esc (exit from menus)
    - Home (big Xbox button): main menu
Anyway, if you don't mind reading and editing a few lines, you can very easily suit your own preferences/needs.
You can find full xboxdrv scripting documentation at this link http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv.html.

Everything you need to run it is written in the comment at the top of the script.

That being said, I'll just leave this here...
:arrow: http://pastebin.com/cSsMApdb

Enjoy! :wink:
metropontikas
Posts: 1
Joined: Sun Mar 29, 2020 10:36 pm

Re: A little script to use the Xbox 360 controller on Linux

Post by metropontikas »

Hi there,

I would like to ask if this script also works for The Longest Journey. If yes, would it be too much trouble for someone to help me use it?

Thank you in advance for your time!

edit: I don't have a xbox gamepad, but a logitech f710. Will it still work?

edit2: The gamepad works fine, after all, but there is no key mapping for the mouse and the left click. Can someone help me add them?

edit3: In the end I switched to qjoypad that was much easier to set up.
Here's a link to lutris forum where I posted a more detailed solution.
https://forums.lutris.net/t/the-longest ... olved/8682
Post Reply