GlobalKeyboardDevice.m (cdf0e10c) | GlobalKeyboardDevice.m (53e04a5d) |
---|---|
1/***************************************************************************** 2 * GlobalKeyboardDevice.m 3 * RemoteControlWrapper 4 * 5 * Created by Martin Kahr on 11.03.06 under a MIT-style license. 6 * Copyright (c) 2006 martinkahr.com. All rights reserved. 7 * 8 * Code modified and adapted to OpenOffice.org --- 97 unchanged lines hidden (view full) --- 106 case kRemoteButtonLeft: 107 defaultsKey = @"left"; 108 break; 109 case kRemoteButtonPlay_Hold: 110 defaultsKey = @"playhold"; 111 break; 112 default: 113#ifdef DEBUG | 1/***************************************************************************** 2 * GlobalKeyboardDevice.m 3 * RemoteControlWrapper 4 * 5 * Created by Martin Kahr on 11.03.06 under a MIT-style license. 6 * Copyright (c) 2006 martinkahr.com. All rights reserved. 7 * 8 * Code modified and adapted to OpenOffice.org --- 97 unchanged lines hidden (view full) --- 106 case kRemoteButtonLeft: 107 defaultsKey = @"left"; 108 break; 109 case kRemoteButtonPlay_Hold: 110 defaultsKey = @"playhold"; 111 break; 112 default: 113#ifdef DEBUG |
114 NSLog(@"Unknown global keyboard defaults key for remote button identifier %d", remoteButtonIdentifier); | 114 NSLog( @"Apple Remote: Unknown global keyboard defaults key for button identifier %d", remoteButtonIdentifier); |
115#endif 116 break; 117 } 118 119 NSNumber* modifiersCfg = [[NSUserDefaults standardUserDefaults] objectForKey: [NSString stringWithFormat: @"mac.remotecontrols.GlobalKeyboardDevice.%@_modifiers", defaultsKey]]; 120 NSNumber* keycodeCfg = [[NSUserDefaults standardUserDefaults] objectForKey: [NSString stringWithFormat: @"mac.remotecontrols.GlobalKeyboardDevice.%@_keycode", defaultsKey]]; 121 122 unsigned int modifiers = defaultModifiers; --- 127 unchanged lines hidden --- | 115#endif 116 break; 117 } 118 119 NSNumber* modifiersCfg = [[NSUserDefaults standardUserDefaults] objectForKey: [NSString stringWithFormat: @"mac.remotecontrols.GlobalKeyboardDevice.%@_modifiers", defaultsKey]]; 120 NSNumber* keycodeCfg = [[NSUserDefaults standardUserDefaults] objectForKey: [NSString stringWithFormat: @"mac.remotecontrols.GlobalKeyboardDevice.%@_keycode", defaultsKey]]; 121 122 unsigned int modifiers = defaultModifiers; --- 127 unchanged lines hidden --- |