X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=JoystickController.m;h=0675075f158545ed1fba58d7e7cd7b2e95cc964e;hp=864a917cff446ae613f8282deb856f7537c7a8fc;hb=08c920c47d68423c16a6deba2a59488772066f6b;hpb=0a402879ee3beb79bb4d2270f909ad75eead0c96 diff --git a/JoystickController.m b/JoystickController.m index 864a917..0675075 100644 --- a/JoystickController.m +++ b/JoystickController.m @@ -17,7 +17,6 @@ @implementation JoystickController { IOHIDManagerRef hidManager; - BOOL programmaticallySelecting; NSTimer *continuousTimer; } @@ -84,8 +83,8 @@ static void input_callback(void *ctx, IOReturn inResult, void *inSender, IOHIDVa return; [controller expandRecursive:handler]; - controller->programmaticallySelecting = YES; [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]; - if (programmaticallySelecting) - [targetController focusKey]; - programmaticallySelecting = NO; } @end