mirror of
https://github.com/godotengine/godot.git
synced 2025-01-21 09:21:17 +00:00
Merge pull request #63303 from hansemro/x11-eraser-case-insensitive
[X11] Do case-insensitive search for pen inversion detection
This commit is contained in:
commit
ed926c4ec1
@ -275,7 +275,7 @@ bool DisplayServerX11::_refresh_device_info() {
|
||||
xi.pen_pressure_range[dev->deviceid] = Vector2(pressure_min, pressure_max);
|
||||
xi.pen_tilt_x_range[dev->deviceid] = Vector2(tilt_x_min, tilt_x_max);
|
||||
xi.pen_tilt_y_range[dev->deviceid] = Vector2(tilt_y_min, tilt_y_max);
|
||||
xi.pen_inverted_devices[dev->deviceid] = (bool)strstr(dev->name, "eraser");
|
||||
xi.pen_inverted_devices[dev->deviceid] = String(dev->name).findn("eraser") > 0;
|
||||
}
|
||||
|
||||
XIFreeDeviceInfo(info);
|
||||
|
Loading…
Reference in New Issue
Block a user