Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed bug 1542 - SDL_Touch should reserve tilt_x and tilt_y
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Jul 18, 2012
1 parent a81b725 commit 0f4393c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/SDL_touch.h
Expand Up @@ -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 */
Expand Down

0 comments on commit 0f4393c

Please sign in to comment.