mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-10-20 06:57:04 +00:00
Daniel Drake A long time ago, it was possible to play neverball on Linux using the accelerometer found in HP laptops. The kernel exposes the accelerometer as a joystick (/dev/input/jsX) as well as an evdev device (/dev/input/eventX). I guess it worked fine when SDL was using the js interface, but then stopped working here: http://hg.libsdl.org/SDL/rev/fdaeea9e7567 Looking at current code which uses udev to discover joysticks, it looks for the udev tag ID_INPUT_JOYSTICK. However udev's internal input_id logic specifically tags accelerometers as ID_INPUT_ACCELEROMETER and nothing else. This looks like a good fit for SDL_HINT_ACCELEROMETER_AS_JOYSTICK. |
||
---|---|---|
.. | ||
SDL_dbus.c | ||
SDL_dbus.h | ||
SDL_evdev.c | ||
SDL_evdev.h | ||
SDL_evdev_kbd.c | ||
SDL_evdev_kbd.h | ||
SDL_evdev_kbd_default_accents.h | ||
SDL_evdev_kbd_default_keymap.h | ||
SDL_fcitx.c | ||
SDL_fcitx.h | ||
SDL_ibus.c | ||
SDL_ibus.h | ||
SDL_ime.c | ||
SDL_ime.h | ||
SDL_threadprio.c | ||
SDL_udev.c | ||
SDL_udev.h |