You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: Linux, ARM
Comments on the original bug report:
On 2018-05-31 20:55:10 +0000, Zack Middleton (zturtleman) wrote:
Created attachment 3253
Normalize x11xinput2 touch x to be 1.0 at width
Applications (such as SDL's testgesture) do "event.tfinger.x * window_width" to find window coord. Currently the X11 XInput2 backend expects application to do "event.tfinger.x * (window_width-1)" instead.
X11 XInput2 touch events are normalized so x is 1.0 at "width - 1" but other SDL backends appear to have x be 1.0 at "width". Same issue for touch event y with regards to height.
Related to bug # 3871.
On 2018-06-25 05:49:35 +0000, Ryan C. Gordon wrote:
When converting normalized coordinates to pixel coordinates, the valid range is 0 to (width or height) - 1, and the pixel coordinate of width or height is past the edge of the window.
Fixeslibsdl-org#2913
When converting normalized coordinates to pixel coordinates, the valid range is 0 to (width or height) - 1, and the pixel coordinate of width or height is past the edge of the window.
Fixeslibsdl-org#2913
When converting normalized coordinates to pixel coordinates, the valid range is 0 to (width or height) - 1, and the pixel coordinate of width or height is past the edge of the window.
Fixes#2913
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: Linux, ARM
Comments on the original bug report:
On 2018-05-31 20:55:10 +0000, Zack Middleton (zturtleman) wrote:
On 2018-06-25 05:49:35 +0000, Ryan C. Gordon wrote:
On 2018-06-26 22:50:53 +0000, Sam Lantinga wrote:
On 2018-07-02 17:21:06 +0000, Ryan C. Gordon wrote:
On 2018-08-03 21:23:10 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: