Skip to content

Commit

Permalink
Updated README with some notes on SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Ruhnke committed May 10, 2009
1 parent fa20c62 commit 8ba6341
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
34 changes: 34 additions & 0 deletions README
Expand Up @@ -59,4 +59,38 @@ give it a far bigger deadzone then needed, thus reducing your ability
for fine movements.


[[ SDL Notes ]]
===============

Depending on what version and what compilation flags where used, your
version of SDL might not use the joystick interface at all, but
instead use the /dev/input/event* device directly. That means that any
calibration or button/axis mapping will be ignored, as those apply to
the joystick interface, not evdev.

To work around that you have to set an environment variable that
forces SDL to use the joystick device:

$ SDL_JOYSTICK_DEVICE="/dev/input/js0"
$ export SDL_JOYSTICK_DEVICE

When you need two or more joysticks this will not work and you might
need to recompile SDL and disable the evdev support.

More info can be found at:

* ftp://ptah.lnf.kth.se/pub/misc/sdl-env-vars

SDL_LINUX_JOYSTICK
Special joystick configuration string for linux. The format is
"name numaxes numhats numballs"
where name is the name string of the joystick (possibly in single
quotes), and the rest are the number of axes, hats and balls
respectively.

SDL_JOYSTICK_DEVICE
Joystick device to use in the linux joystick driver, in addition
to the usual: /dev/js*, /dev/input/event*, /dev/input/js*


# EOF #
19 changes: 12 additions & 7 deletions TODO
Expand Up @@ -13,14 +13,14 @@ git push --tags
[[ TODO ]]
==========

- A simple authomatic calibration method
- Possibility of activate noise reduction in joystick axis
- Load and save presets in devices, and to load them automatically
when you connect the device.
* [FEATURE] A simple authomatic calibration method

* Watch teh syste, maybe bein in systray, to protect the device from
accidental reconfiguration by another application. [unlikely, as
that would mean polling]
* [FEATURE] Possibility of activate noise reduction in joystick axis
(read only field, but can't hurd to have it, in case any app wants
to play with it)

* [FEATURE] Load and save presets in devices, and to load them automatically
when you connect the device.

* [CLEANUP] sync evtest_helper.?pp, make sure no boost dependency is
present
Expand All @@ -43,6 +43,11 @@ when you connect the device.
[[ Possible Future Improvments ]]
=================================

* [FEATURE] Watch teh system, maybe being in systray, to protect the
device from accidental reconfiguration by another
application. (unlikely, as that would mean polling and other then
jscalibrator there isn't much to mess up joystick calibration)

* draw calibration icon

* draw mapping icon
Expand Down

0 comments on commit 8ba6341

Please sign in to comment.