Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[win32] add defines for GID_ROTATE_ANGLE_TO_ARGUMENT and GID_ROTATE_A…

…NGLE_FROM_ARGUMENT
  • Loading branch information...
commit 7cb5e1a3dcd645770197763c24aeab2994bce553 1 parent 84cdb08
@Montellese Montellese authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/windowing/windows/WinSystemWin32.h
View
3  xbmc/windowing/windows/WinSystemWin32.h
@@ -115,6 +115,9 @@ typedef struct tagGESTURENOTIFYSTRUCT {
DWORD dwInstanceID; // internally used
} GESTURENOTIFYSTRUCT, *PGESTURENOTIFYSTRUCT;
+#define GID_ROTATE_ANGLE_TO_ARGUMENT(_arg_) ((USHORT)((((_arg_) + 2.0 * 3.14159265) / (4.0 * 3.14159265)) * 65535.0))
+#define GID_ROTATE_ANGLE_FROM_ARGUMENT(_arg_) ((((double)(_arg_) / 65535.0) * 4.0 * 3.14159265) - 2.0 * 3.14159265)
+
DECLARE_HANDLE(HGESTUREINFO);
#endif
Please sign in to comment.
Something went wrong with that request. Please try again.