forked from bartvdbraak/blender
Cocoa port :
Quick&dirty bug fix to catch ad discard tablet induced exceptions. I'll make a clean fix upon getting a tablet to debug.
This commit is contained in:
parent
ff07676b40
commit
d01c737283
@ -1098,7 +1098,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleTabletEvent(void *eventPtr)
|
||||
NSUInteger tabletEvent;
|
||||
|
||||
//Handle tablet events combined with mouse events
|
||||
switch ([event subtype]) {
|
||||
@try {
|
||||
switch ([event subtype]) {
|
||||
case NX_SUBTYPE_TABLET_POINT:
|
||||
tabletEvent = NSTabletPoint;
|
||||
break;
|
||||
@ -1109,7 +1110,13 @@ GHOST_TSuccess GHOST_SystemCocoa::handleTabletEvent(void *eventPtr)
|
||||
default:
|
||||
tabletEvent = [event type];
|
||||
break;
|
||||
}
|
||||
}
|
||||
@catch (NSException * e) {
|
||||
//FIXME: check why we get such exceptions when using a tablet
|
||||
return GHOST_kFailure;
|
||||
}
|
||||
|
||||
|
||||
switch (tabletEvent) {
|
||||
case NSTabletPoint:
|
||||
|
Loading…
Reference in New Issue
Block a user