Page Menu
Home
Search
Configure Global Search
Log In
Files
F26680
event.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Dan McGrath (dmcgrath)
Nov 13 2013, 5:37 PM
Size
1 KB
Subscribers
None
event.diff
View Options
Index: source/blender/editors/sculpt_paint/paint_image.c
===================================================================
--- source/blender/editors/sculpt_paint/paint_image.c (revision 53912)
+++ source/blender/editors/sculpt_paint/paint_image.c (working copy)
@@ -5383,10 +5383,20 @@
return OPERATOR_RUNNING_MODAL;
}
+void WM_event_print(struct wmEvent *event);
+
static int paint_modal(bContext *C, wmOperator *op, wmEvent *event)
{
PaintOperation *pop = op->customdata;
+ if (event->tablet_data) {
+ printf("tablet event\n");
+ WM_event_print(event);
+ }
+ else
+ {
+ WM_event_print(event);
+ }
switch (event->type) {
case LEFTMOUSE:
case MIDDLEMOUSE:
Index: source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- source/blender/windowmanager/intern/wm_event_system.c (revision 53912)
+++ source/blender/windowmanager/intern/wm_event_system.c (working copy)
@@ -80,9 +80,9 @@
#include "wm_event_types.h"
#include "wm_draw.h"
-#ifndef NDEBUG
+//#ifndef NDEBUG
# include "RNA_enum_types.h"
-#endif
+//#endif
static void update_tablet_data(wmWindow *win, wmEvent *event);
@@ -454,7 +454,7 @@
}
/* for debugging only, getting inspecting events manually is tedious */
-#ifndef NDEBUG
+//#ifndef NDEBUG
void WM_event_print(wmEvent *event)
{
@@ -481,7 +481,7 @@
}
}
-#endif /* NDEBUG */
+//#endif /* NDEBUG */
/* (caller_owns_reports == TRUE) when called from python */
static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int caller_owns_reports)
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/75/0c1fd1345008cf419f66fbd31a5e
Event Timeline
Log In to Comment