Blender Git Commit Log

Git Commits -> Revision 0db1aed

Revision 0db1aed by Diego Borghetti (master)
January 19, 2008, 21:54 (GMT)
More change to the gesture manager.

After check this a little more I make some changes to the
API and now work on the following form:
WM_gesture_init(C, type);

while() {
/* handler event, etc */
/* if something change. */
if(need_update) {
/* update the gesture data and notify about it. */
WM_gesture_update(C, data);
WM_event_add_notifier (.. WM_NOTE_GESTURE_CHANGE ..);
}
}
WM_gesture_end(C, type);

Another of the change is that now the gesture data is a link list
in the window struct, so we can have multiples "gestures" (but
of different type) at the same time.

Also take care that the "gesture data" is reusable, that mean that
only alloc it 1 time and use in all the place, that is
why don't support multiple gesture of the same type, but of course
that can be change.

Commit Details:

Full Hash: 0db1aed7e1f8eeaba3e1e94f8b8add4932b194f6
SVN Revision: 13301
Parent Commit: b80049a
Lines Changed: +102, -42

7 Modified Paths:

/source/blender/editors/screen/screen_edit.c (+10, -9) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+63, -11) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+19, -16) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -1) (Diff)
/source/blender/windowmanager/WM_api.h (+4, -3) (Diff)
/source/blender/windowmanager/wm_gesture_types.h (+3, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021