Closed hansemro closed 2 years ago
Currently, godot does a case-sensitive search for the word "eraser" without converting the device name to lower case, which would explain my problem.
This should be trivial to fix by converting device names to lowercase in Godot before checking for their name against lowercase eraser
.
Godot version
4.0.dev (6dcc9d11319), 3.x (101cbe5d5bb)
System information
Steam OS (stable, kernel 5.13.0-valve15-1-neptune-02197-gf6ec7ad3762a), Steam Deck with Wacom Intuos Pro M
Issue description
While testing Wacom Intuos Pro M on the Steam Deck, I noticed the eraser end of the stylus did not get recognized in my test program (https://github.com/hansemro/InvertedPenGodotTest). After checking code I referenced for the X11 implementation (https://gitlab.com/gnome/gtk/-/blob/master/gdk/x11/gdkdevicemanager-xi.c#L233-235), I noticed that device name gets converted to all lower case before checking for the word "eraser". Currently, godot does a case-sensitive search for the word "eraser" without converting the device name to lower case, which would explain my problem.
For reference, here is a comparison of
xinput
command between my Steam Deck and Thinkpad:xinput
command snippet on Steam Deck (in desktop mode):xinput
command snippet on Thinkpad T440p with Manjaro Linux:Steps to reproduce
Requirements to reproduce:
Minimal reproduction project
No response