From 0f4393c43036ec9effaccc120721c4da07ef33c7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 18 Jul 2012 15:53:33 -0700 Subject: [PATCH] Fixed bug 1542 - SDL_Touch should reserve tilt_x and tilt_y Gerry JJ 2012-07-14 19:42:23 PDT The SDL_Touch structure currently reserves fields for tablet tilt and rotation (marked "for future use"), but a tablet stylus can tilt in both x and y directions in addition to rotation around itself (or, put another way, it can rotate in x, y and z). So, the struct should probably reserve fields for both tilt_x and tilt_y, not just tilt. --- include/SDL_touch.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/SDL_touch.h b/include/SDL_touch.h index 6fc0c03cc..cb1324516 100644 --- a/include/SDL_touch.h +++ b/include/SDL_touch.h @@ -71,7 +71,8 @@ struct SDL_Touch { float y_max,y_min; Uint16 xres,yres,pressureres; float native_xres,native_yres,native_pressureres; - float tilt; /* for future use */ + float tilt_x; /* for future use */ + float tilt_y; /* for future use */ float rotation; /* for future use */ /* Data common to all touch */