Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-07-14 18:49:00 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-07-14 18:49:00 +0400
commit48eececdba17af7d85fc19480be0e34e38362e66 (patch)
tree146586c54f236aebcdad152c93f5ea9514e1f32b /source/blender/windowmanager/WM_api.h
parent45f0bd6eb1d15aed480fc843ed1c4acc9865abc4 (diff)
Follow up to previous commit.
* Expose is_tablet property to events to determine if event contains tablet data. * Expose tablet tilt for events as a 2D vector in python
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 4b30d4b11b9..cfa795cb3b7 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -449,7 +449,8 @@ void WM_event_ndof_rotate_get(const struct wmNDOFMotionData *ndof, float
float WM_event_ndof_to_axis_angle(const struct wmNDOFMotionData *ndof, float axis[3]);
void WM_event_ndof_to_quat(const struct wmNDOFMotionData *ndof, float q[4]);
-float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip);
+float WM_event_tablet_data(const struct wmEvent *event, int *pen_flip, float tilt[2]);
+bool WM_event_is_tablet(const struct wmEvent *event);
#ifdef __cplusplus
}