Same problem here, the bug still exist in Ubuntu 10.10. A temporary workaround (only works with one gamepad), that doesn't require modifications to the zsnes package can be done with SDL environment variables, which can be used to redefine the hat as regular axis, the variable has the syntax:
SDL_LINUX_JOYSTICK="'YourJoystickNameHere' NUMAXIS NUMHATS NUMBALLS" The joystick name and number of axis can be gained from zsnes output on stdout: Device 0 Xbox Gamepad (userspace driver) 6 axis, 11 buttons, 1 hats, 0 balls So the final variables would look like this: export SDL_JOYSTICK_DEVICE=/dev/input/js0 export SDL_LINUX_JOYSTICK="'Xbox Gamepad (userspace driver)' 8 0 0" Here the 1 hat is turned into two axis (X and Y). SDL_JOYSTICK_DEVICE is required as SDL uses /dev/input/eventX by default, not the joystick interface, the event interface in SDL doesn't allow any kind of configuration. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/519845 Title: Diagonal input from gamepad "hat" events is not reset properly -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
