I'm trying to create a game console-like environment with a PC and free
software. On a side note, I wonder how many other people are interested in
this sort of thing, especially considering the beautiful small HTPC models
available at ThinkPenguin.
I've managed to get my computer paired with a bluetooth game controller at
boot, and the controller works perfectly with games like rRootage,
SuperTuxKart, and FreeDink; as well as XBMC, which is essential.
Everything is ready to go except one thing: I need a way to launch XBMC from
the controller. I don't want it to start without the controller (I use my PC
for regular stuff when I'm not gaming on it). I've decided I want to launch a
process from .xsessionrc that watches for BTN_MODE to be sent from the
controller indicating I've pressed the guide button, which will then launch
XBMC or do whatever else I want. However I don't know how to do this. I think
I need to watch /dev/input/event or uinput.
This guide does something similar, watching for events from LIRC
http://forum.xbmc.org/showthread.php?tid=129256 . How can I look for events
from the controller? xboxdrv says events are sent to event10 or js0.
- [Trisquel-users] HTPC Controlled By Gamepad - Home/Launc... virx61
-