commit | 9d182e5c96a2a42c3fa2d65982b4747647957ace | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Wed Oct 11 13:31:21 2017 -0700 |
committer | Sam Lantinga <slouken@libsdl.org> | Wed Oct 11 13:31:21 2017 -0700 |
tree | 193a08ab03de54d70d0066b3c937e1d98334b825 | |
parent | 854ad825354422d242f83e9c372252329057f2ff [diff] |
Fixed bug 3871 - Touch events are not normalised on X11 Trent Gamblin The documentation for SDL_TouchFingerEvent says that the x and y coordinates are normalised between 0-1. I've found that to be true on Windows, Android and iOS but on X11 they are in pixel coordinates. This patch fixes the issue. This was the cleanest way I could do it with what was available without changing things around a lot but you may know a better way.