Skip to content

No input events for rudder pedals on Linux #24526

@MrMinimal

Description

@MrMinimal

Godot version:
3.1

OS/device including version:
Linux

Issue description:
Godot does not recognize joysticks/gamepads with axis only (e.g. rudder pedals). As a result no input events reach the game logic. Happens when compiling with both udev=yes and udev=no.

Code which produces this bug:
https://github.com/godotengine/godot/blob/master/platform/x11/joypad_linux.cpp#L342

(reformatted with values from a gamepad vs my rudder pedals):
cleanedeventhandling

The offending line discards any events coming from joysticks that don't have any buttons(test1).
Removing the line fixed the problem for me, but is only a temporary solution.

Steps to reproduce:

  1. Plug in a joystick without any buttons, only axis
  2. Have a GDScript with an input function like so:
func _input(event):
    print(event)
  1. Move axis on joystick
  2. Observe no InputEventJoypadMotion events occuring

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions