Fixed bug 1542 - SDL_Touch should reserve tilt_x and tilt_y
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 15:53:33 -0700
changeset 637276d0f2cf2ca6
parent 6371 a6b1a0c31880
child 6373 494e0436525f
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
     1.1 --- a/include/SDL_touch.h	Wed Jul 18 15:20:32 2012 -0700
     1.2 +++ b/include/SDL_touch.h	Wed Jul 18 15:53:33 2012 -0700
     1.3 @@ -71,7 +71,8 @@
     1.4    float y_max,y_min;
     1.5    Uint16 xres,yres,pressureres;
     1.6    float native_xres,native_yres,native_pressureres;
     1.7 -  float tilt;                   /* for future use */
     1.8 +  float tilt_x;                 /* for future use */
     1.9 +  float tilt_y;                 /* for future use */
    1.10    float rotation;               /* for future use */
    1.11    
    1.12    /* Data common to all touch */