Libre Games that can work with a xbox 360 controller

9 replies [Last post]
Embracer245
Offline
Joined: 08/24/2015

Hey guys,
For christmas, My Parents got me a new Alienware computer and it came bundled with a xbox 360 controller. I want to use this controller on my other GNU/linux rig (like the one i am typing on right now). Neverputt And Neverball were the only libre games i know of that work with the xbox 360 controller. Can you help me find some examples of libre games that work with the controller? Any help will be appreciated!

lembas
Offline
Joined: 05/13/2010

Does the xev command see its input? If yes, then you can bind they keys and play probably just about any game. (only limitation is number of [recognized] keys)

Open a terminal and typexeva white box appears, move the cursor inside of it. Now, when you press the keys on the controllor, do you get events?

For libre games, see https://libregamewiki.org/

Embracer245
Offline
Joined: 08/24/2015

I dont see anything on the event tester, but the command line says random things like:

KeyRelease event, serial 33, synthetic NO, window 0x4000001,
root 0x7d, subw 0x0, time 9128761, (506,681), root:(510,781),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
And

PropertyNotify event, serial 37, synthetic NO, window 0x4000001,
atom 0x127 (_NET_WM_STATE), time 9167414, state PropertyNewValue

lembas
Offline
Joined: 05/13/2010

Hope not random, lol!

> KeyRelease event, serial 33, synthetic NO, window 0x4000001, root 0x7d, subw 0x0, time 9128761, (506,681), oot:(510,781), state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES, " XLookupString gives 1 bytes: (0d) " XFilterEvent returns: False

This means that your input is now interpreted as hitting Enter. You can bind it (and the actual Enter at the same time...) to whatever key you want using e.g. xbindkeys-config, from similarly named package. Then run the xbindkeys daemon to get the bindings active.

Embracer245
Offline
Joined: 08/24/2015

Hey guys,
For christmas, My Parents got me a new Alienware computer and it came bundled
with a xbox 360 controller. I want to use this controller on my other
GNU/linux rig (like the one i am typing on right now). Neverputt And
Neverball were the only libre games i know of that work with the xbox 360
controller. Can you help me find some examples of libre games that work with
the controller? Any help will be appreciated!

lembas
Offline
Joined: 05/13/2010

Hope not random, lol!

KeyRelease event, serial 33, synthetic NO, window 0x4000001,
root 0x7d, subw 0x0, time 9128761, (506,681), oot:(510,781),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES, "
XLookupString gives 1 bytes: (0d) " XFilterEvent returns: False

This means that your input is now interpreted as hitting Enter. You can bind
it (and the actual Enter at the same time...) to whatever key you want using
e.g. xbindkeys-config, from similarly named package. Then run the xbindkeys
daemon to get the bindings active.

Embracer245
Offline
Joined: 08/24/2015

I dont see anything on the event tester, but the command line says random
things like:

KeyRelease event, serial 33, synthetic NO, window 0x4000001,
root 0x7d, subw 0x0, time 9128761, (506,681), root:(510,781),
state 0x10, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
And

PropertyNotify event, serial 37, synthetic NO, window 0x4000001,
atom 0x127 (_NET_WM_STATE), time 9167414, state PropertyNewValue

onpon4
Offline
Joined: 05/30/2012

Xbox 360 controllers send non-standard signals (XInput), but Linux supports them out-of-the-box, so you can use it like any standard controller. For the most part, it should work with any game.

Heck, here are a few games straight from me that should work just fine with it (I developed the first three, and am the current maintainer of the fourth):

http://pacewar.nongnu.org
http://retux.nongnu.org
https://onpon4.github.io/games/kitten_command/kitten_command-1.0-src.tar.gz
http://starfighter.nongnu.org

Here's an example of a nice game that's actually specifically designed to use the XBox 360 controller (the controls don't work well with other controllers that have different button arrangements):

https://github.com/cxong/Slappa

And some more which you may or may not have heard of:

SuperTuxKart - http://supertuxkart.sf.net (or package "supertuxkart")
SuperTux - https://supertux.github.io (or package "supertux")
GLTron - package "gltron"
Kobo Deluxe - package "kobodeluxe"
Torus Trooper - package "torus-trooper"
Other games by Kenta Cho

This list is by no means exhaustive. I wish more libre games would natively support controllers, but the number that currently do is much more than two.

lembas
Offline
Joined: 05/13/2010

Does the xev command see its input? If yes, then you can bind they keys and
play probably just about any game. (only limitation is number of [recognized]
keys)

Open a terminal and typexeva white box appears, move the cursor inside of it.
Now, when you press the keys on the controllor, do you get events?

onpon4
Offline
Joined: 05/30/2012

Xbox 360 controllers send non-standard signals (XInput), but Linux supports
them out-of-the-box, so you can use it like any standard controller. For the
most part, it should work with any game.

Heck, here are a few games straight from me that should work just fine with
it (I developed the first three, and am the current maintainer of the
fourth):

http://pacewar.nongnu.org
http://retux.nongnu.org
https://onpon4.github.io/games/kitten_command/kitten_command-1.0-src.tar.gz
http://starfighter.nongnu.org

Here's an example of a nice game that's actually specifically designed to use
the XBox 360 controller:

https://github.com/cxong/Slappa

And some more which you may or may not have heard of:

SuperTuxKart - http://supertuxkart.sf.net (or package "supertuxkart")
SuperTux - https://supertux.github.io (or package "supertux")
GLTron - package "gltron"
Kobo Deluxe - package "kobodeluxe"
Torus Trooper - package "torus-trooper"
Other games by Kenta Cho

This list is by no means exhaustive. I wish more libre games would natively
support controllers, but the number that currently do is much more than two.