diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-05-14 11:48:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-05-14 11:48:45 +0300 |
commit | 5d2e54af37af9d68b087d30458ac697bb9a05ba7 (patch) | |
tree | 3d0fd31339ef41c59a7847a0d43cc059b3fd7c9d /source | |
parent | 21e5a727987cd5873bad0af85aa76c3564f83f0c (diff) | |
parent | fee46615f43ffaef06c34623c881cf1f7ffab747 (diff) |
Merge branch 'blender-v2.83-release'
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_query.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_query.c b/source/blender/windowmanager/intern/wm_event_query.c index 5b1c7680adc..381c06983a8 100644 --- a/source/blender/windowmanager/intern/wm_event_query.c +++ b/source/blender/windowmanager/intern/wm_event_query.c @@ -61,18 +61,28 @@ void WM_event_print(const wmEvent *event) const char *unknown = "UNKNOWN"; const char *type_id = unknown; const char *val_id = unknown; + const char *prev_type_id = unknown; + const char *prev_val_id = unknown; RNA_enum_identifier(rna_enum_event_type_items, event->type, &type_id); RNA_enum_identifier(rna_enum_event_value_items, event->val, &val_id); + RNA_enum_identifier(rna_enum_event_type_items, event->prevtype, &prev_type_id); + RNA_enum_identifier(rna_enum_event_value_items, event->prevval, &prev_val_id); + printf( "wmEvent type:%d / %s, val:%d / %s,\n" + " prev_type:%d / %s, prev_val:%d / %s,\n" " shift:%d, ctrl:%d, alt:%d, oskey:%d, keymodifier:%d, is_repeat:%d,\n" " mouse:(%d,%d), ascii:'%c', utf8:'%.*s', pointer:%p\n", event->type, type_id, event->val, val_id, + event->prevtype, + prev_type_id, + event->prevval, + prev_val_id, event->shift, event->ctrl, event->alt, |