projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only refocus key input for empty/key targets.
[enjoyable.git]
/
JoystickController.m
diff --git
a/JoystickController.m
b/JoystickController.m
index
864a917
..
0675075
100644
(file)
--- a/
JoystickController.m
+++ b/
JoystickController.m
@@
-17,7
+17,6
@@
@implementation JoystickController {
IOHIDManagerRef hidManager;
@implementation JoystickController {
IOHIDManagerRef hidManager;
- BOOL programmaticallySelecting;
NSTimer *continuousTimer;
}
NSTimer *continuousTimer;
}
@@
-84,8
+83,8
@@
static void input_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDVa
return;
[controller expandRecursive:handler];
return;
[controller expandRecursive:handler];
- controller->programmaticallySelecting = YES;
[controller->outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[controller->outlineView rowForItem:handler]] byExtendingSelection: NO];
[controller->outlineView selectRowIndexes:[NSIndexSet indexSetWithIndex:[controller->outlineView rowForItem:handler]] byExtendingSelection: NO];
+ [controller->targetController focusKey];
}
}
}
}
@@
-192,9
+191,6
@@
static void remove_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDD
- (void)outlineViewSelectionDidChange: (NSNotification*) notification {
[targetController reset];
[targetController load];
- (void)outlineViewSelectionDidChange: (NSNotification*) notification {
[targetController reset];
[targetController load];
- if (programmaticallySelecting)
- [targetController focusKey];
- programmaticallySelecting = NO;
}
@end
}
@end