godot: X11: Cursor in captured mode is broken for devices working in absolute mode

Godot version:

f50dd682f6a0f9506daaf16fed06f4bc9efa6599

OS/device including version:

Linux / Ubuntu 18.04.1 LTS

Issue description: Steps to reproduce:

Set e.g. Wacom pen in absolute mode with the Gnome settings-panel or:

xsetwacom --set Wacom Intuos4 4x6 Pen stylus Mode Absolute
xsetwacom --set Wacom Intuos4 4x6 Pen stylus Area 0 0 31496 9842
xsetwacom --set Wacom Intuos4 4x6 Pen stylus MapToOutput desktop

The cursor leaves our planet: peek 2018-09-04 13-27

Minimal reproduction project:

Modified example from https://github.com/godotengine/godot/issues/21744 (thanks!): i21744-Constrained-Cursor.zip

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 17 (17 by maintainers)

Most upvoted comments

Yeah, the source code is already full of frustration 😉

For comparison without the PR: peek 2018-09-05 10-12

The PR #19191 also breaks the normal and confined relative coordinates. peek 2018-09-05 08-41

PR #21753 + #19191 peek 2018-09-06 12-18

i21744-Constrained-Cursor-v5.zip 0001-Use-XInput2-RawMotion-to-generate-MouseMotion-events.patch.txt