├── UserNotification ├── Growl.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── Growl │ │ │ ├── Headers │ │ │ └── Growl.h │ │ │ └── _CodeSignature │ │ │ └── CodeResources │ ├── Growl │ ├── Headers │ └── Resources ├── 10.5 │ └── Growl.framework │ │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── Growl │ │ │ └── Headers │ │ │ └── Growl.h │ │ ├── Growl │ │ ├── Headers │ │ └── Resources ├── screen.jpg ├── closebutton.png ├── closebutton_pressed.png ├── main.m ├── LeftTopNotificationLayoutManager.h ├── RightTopNotificationLayoutManager.h ├── LeftBottomNotificationLayoutManager.h ├── RightBottomNotificationLayoutManager.h ├── GrowlUserNotificationCenter.h ├── OwnUserNotificationCenter.h ├── AppleUserNotificationCenter.h ├── AnimatedWindow.h ├── UserNotificationCenterProtected.h ├── UserNotification.xcodeproj │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── Info.plist ├── Test-Info.plist ├── UserNotification.h ├── MainController.h └── NotificationWindow.h ├── examples └── WATest │ ├── OCLog.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ └── OCLog │ ├── Headers │ ├── OCLog │ └── Resources │ ├── Wiimote.framework │ ├── Versions │ │ ├── Current │ │ └── A │ │ │ ├── Frameworks │ │ │ └── HID.framework │ │ │ │ ├── Versions │ │ │ │ ├── Current │ │ │ │ └── A │ │ │ │ │ ├── HID │ │ │ │ │ └── Headers │ │ │ │ │ └── HIDManager.h │ │ │ │ ├── HID │ │ │ │ ├── Headers │ │ │ │ └── Resources │ │ │ ├── Wiimote │ │ │ └── Headers │ │ │ ├── WiimoteExtension.h │ │ │ ├── WiimoteProtocolIR.h │ │ │ ├── Wiimote+PlugIn.h │ │ │ ├── WiimoteIRPoint.h │ │ │ ├── WiimoteEventSystem+PlugIn.h │ │ │ ├── WiimoteDeviceReport.h │ │ │ ├── WiimoteEventSystem.h │ │ │ ├── WiimoteProtocolExtension.h │ │ │ ├── WiimoteWatchdog.h │ │ │ ├── WiimoteProtocolNunchuck.h │ │ │ ├── WiimoteIOManager.h │ │ │ ├── WiimoteProtocolMotionPlus.h │ │ │ ├── WiimoteProtocol.h │ │ │ ├── WiimoteExtensionProbeHandler.h │ │ │ ├── WiimoteProtocolCalibration.h │ │ │ ├── WiimotePart.h │ │ │ ├── WiimoteGenericExtension.h │ │ │ └── WiimoteEventDispatcher.h │ ├── Headers │ ├── Wiimote │ └── Resources │ ├── MainController.h │ ├── main.m │ └── WATest-Info.plist ├── WJoy ├── app.icns ├── warning.icns ├── wiimote.png ├── dmg_background.png ├── WJoy.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── justin.xcuserdatad │ │ │ ├── UserInterfaceState.xcuserstate │ │ │ └── xcdebugger │ │ │ └── Expressions.xcexplist │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── MainController.h ├── main.m ├── WiimoteLEDsController.h ├── WJoyLatestVersion.plist ├── UserActivityNotifier.h ├── NotificationCenter.h ├── StatusBarItemController.h ├── MainController.m ├── LoginItemsList.h ├── fix_dmg.applescript ├── WiimoteAutoWrapper.h ├── UserActivityNotifier.m └── WJoy-Info.plist ├── fun └── ice │ ├── ice1.png │ ├── ice2.png │ ├── ice3.png │ ├── ice4.png │ ├── ice5.png │ ├── ice6.png │ ├── ice_tray.icns │ ├── IceWindow.h │ ├── main.m │ ├── IceView.h │ ├── ThreadTimer.h │ ├── MainController.h │ ├── IceParticlesSystem.h │ ├── Math3D.h │ ├── IceParticle.h │ └── ice-Info.plist ├── experimental ├── WiimoteAudioEngine │ ├── ffmpeg │ │ ├── lib │ │ │ ├── libavcodec.dylib │ │ │ ├── libavcore.dylib │ │ │ ├── libavdevice.dylib │ │ │ ├── libavfilter.dylib │ │ │ ├── libavformat.dylib │ │ │ ├── libavutil.dylib │ │ │ └── libswscale.dylib │ │ └── include │ │ │ └── libavutil │ │ │ ├── avconfig.h │ │ │ └── random_seed.h │ ├── AVMutableAudioPacket.h │ ├── AVAudioPacket.h │ ├── WiimoteAudioPart.h │ ├── AVAudioEncoder.h │ ├── WiimoteAudioSourceWrapper.h │ ├── AVAudioPacket.m │ ├── Wiimote+Audio.h │ ├── WiimoteAudioSource.h │ ├── AVAudioSourceConverter.h │ ├── AVAudioSource.h │ ├── AVYamahaADPCMEncoder.h │ ├── AVAudioEncoder.m │ ├── AVFileAudioSource.h │ ├── Info.plist │ ├── test-Info.plist │ ├── WiimoteAudioSource.m │ ├── AVAudioPacketConverter.h │ ├── AVMutableAudioPacket.m │ └── Wiimote+Audio.m └── VHID2 │ ├── VHID.h │ ├── VHIDDevice+Private.h │ ├── VHIDGameController+Private.h │ ├── VHIDMouse.h │ ├── VHIDDevice.h │ ├── VHIDDevice.m │ ├── VHIDDevice+Private.m │ └── Info.plist ├── VHID ├── VHID.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── justin.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── MainController.h ├── TestView.h ├── VHIDButtonCollection.h ├── VHIDPointerCollection.h ├── Info.plist ├── Test-Info.plist └── TestView.m ├── Wiimote ├── WiimoteEventSystem+Nunchunk.h ├── WiimoteEventSystem+UDraw.h ├── WiimoteEventSystem+Wiimote.h ├── WiimoteEventSystem+BalanceBoard.h ├── WiimoteEventSystem+UProController.h ├── WiimoteEventSystem+ClassicController.h ├── WiimoteUnknownExtension.h ├── HIDManager+Private.h ├── WiimoteProtocolUDraw.h ├── WiimoteIOManager+Private.h ├── WiimoteEventDispatcher+LED.h ├── WiimoteEventDispatcher+Vibration.h ├── Wiimote+Tracking.h ├── WiimoteEventDispatcher+Battery.h ├── WiimoteExtension.m ├── test.m ├── WiimoteBatteryPart.h ├── WiimoteDevicePair.h ├── WiimoteButtonPart.h ├── Wiimote+Create.h ├── WiimoteEventDispatcher+IR.h ├── WiimoteEventDispatcher+Button.h ├── WiimoteEventDispatcher+Extension.h ├── WiimoteLEDPart.h ├── WiimoteExtension.h ├── WiimoteUProController.h ├── WiimoteVibrationPart.h ├── WiimoteIRPoint+Private.h ├── WiimoteAccelerometerPart.h ├── WiimoteUDraw.h ├── WiimoteEventDispatcher+Private.h ├── WiimoteIRPoint.m ├── WiimoteProtocolIR.h ├── HIDDevice+Private.h ├── Wiimote+PlugIn.h ├── WiimoteIRPoint.h ├── WiimoteEventDispatcher+Accelerometer.h ├── WiimoteDeviceReport.m ├── WiimoteEventSystem+PlugIn.h ├── HIDManager.h ├── WiimoteIOManager+Private.m ├── WiimoteUnknownExtension.m ├── WiimoteMotionPlus.h ├── WiimoteProtocolBalanceBoard.h ├── WiimoteEventDispatcher+BalanceBoard.h ├── WiimoteDeviceReport.h ├── WiimoteEventSystem.h ├── WiimoteIRPart.h ├── WiimoteProtocolExtension.h ├── WiimoteEventDispatcher+MotionPlus.h ├── Wiimote+PlugIn.m ├── WiimoteEventDispatcher+UDraw.h ├── WiimoteWatchdog.h ├── WiimoteEventDispatcher+UProController.h ├── WiimoteNunchuck.h ├── HID-Info.plist ├── WiimoteEventDispatcher+LED.m ├── WiimoteEventDispatcher+Vibration.m ├── WiimoteDeviceReadMemHandler.h ├── WiimoteDeviceReport+Private.h ├── WiimoteProtocolNunchuck.h ├── WiimoteDeviceReadMemQueue.h ├── WiimoteIOManager.h ├── WiimoteProtocolMotionPlus.h ├── Info.plist ├── Wiimote+Tracking.m ├── WiimoteExtensionPart.h ├── HIDManager+Private.m ├── WiimoteBalanceBoard.h ├── WiimoteExtensionProbeHandler.h ├── TestController.h ├── WiimoteProtocolCalibration.h ├── WiimoteVibrationPart.m ├── WiimoteClassicController.h ├── WiimotePart.h ├── WiimoteProtocol.h ├── test-Info.plist ├── WiimoteEventDispatcher+Extension.m ├── WiimoteIOManager.m ├── WiimoteEventDispatcher+Nunchuck.h ├── WiimoteGenericExtension.h ├── WiimoteMotionPlusDetector.h ├── WiimoteEventDispatcher.h ├── WiimoteIRPoint+Private.m ├── WiimoteEventDispatcher+IR.m ├── WiimoteEventDispatcher+Battery.m ├── WiimoteEventDispatcher+ClassicController.h ├── WiimoteBalanceBoardDelegate.m ├── WiimoteEventDispatcher+Button.m ├── WiimotePartSet.h ├── WiimoteInquiry.h ├── WiimoteEventDispatcher+Private.m └── WiimoteAccelerometer.h ├── LocalizationUtils ├── English.lproj │ ├── InfoPlist.strings │ └── Localizable.strings ├── Russian.lproj │ └── InfoPlist.strings ├── main.m ├── NSString+Escape.h ├── XibCocoaObjectInspector.h ├── MainController.h ├── NSMutableAttributedString+StringValue.h ├── NSComboBox+Items.h ├── NSMatrix+ToolTipItem.h ├── NSMutableAttributedString+StringValue.m ├── NSSegmentedControl+Items.h ├── NSBundle+NibLoadNotification.h ├── NSObject+ObjCRuntime.h ├── MainController.m ├── LocalizationUtils.h ├── XibObjectInspector.h ├── XibObjectProperty.h ├── Info.plist └── XibObjectInspector+PlugIn.h ├── OCLog ├── test.m ├── MainController.h ├── OCLog.xcodeproj │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── Info.plist └── test-Info.plist ├── DMGEULA ├── NSObject+DMGEULA.h ├── DMGEULAResource+DMG.h ├── NSObject+DMGEULA.m ├── DMGEULALanguage+SupportedLanguagesStore.h ├── DMGEULAPathPreprocessor.h ├── DMGEULALanguage+SupportedLanguages.h ├── DMGEULA.h ├── DMGEULALanguage+NSDictionary.h ├── DMGEULAResource+DeepStore.h ├── DMGEULAResource+Store.h ├── DMGEULA-Info.plist ├── DMGEULA.xcodeproj │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── DMGEULAResource.h ├── UpdateChecker ├── main.m ├── UAppVersion.h ├── MainController.h ├── NSString+UAppVersion.h ├── UpdateChecker.xcodeproj │ └── xcuserdata │ │ └── justin.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── Info.plist └── UpdateTest-Info.plist ├── WirtualJoy ├── WJoyTool.h ├── WJoyToolInterface.h ├── WJoyAdminToolRight.h ├── wirtual_joy_config.h ├── wirtual_joy.h ├── WirtualJoy-Info.plist ├── wirtual_joy.cpp ├── wirtual_joy_debug.h ├── Test-Info.plist └── WJoyDevice.h └── ObjCDebug ├── MachOSymbol+Private.h ├── ObjCCallTracer.h ├── MachOSymbol.h ├── main.m ├── MachOSymbolMap.h ├── Info.plist └── test-Info.plist /UserNotification/Growl.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /examples/WATest/OCLog.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Growl: -------------------------------------------------------------------------------- 1 | Versions/Current/Growl -------------------------------------------------------------------------------- /examples/WATest/OCLog.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /examples/WATest/OCLog.framework/OCLog: -------------------------------------------------------------------------------- 1 | Versions/Current/OCLog -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Growl: -------------------------------------------------------------------------------- 1 | Versions/Current/Growl -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /examples/WATest/OCLog.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Wiimote: -------------------------------------------------------------------------------- 1 | Versions/Current/Wiimote -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /WJoy/app.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/WJoy/app.icns -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/HID: -------------------------------------------------------------------------------- 1 | Versions/Current/HID -------------------------------------------------------------------------------- /WJoy/warning.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/WJoy/warning.icns -------------------------------------------------------------------------------- /WJoy/wiimote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/WJoy/wiimote.png -------------------------------------------------------------------------------- /fun/ice/ice1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice1.png -------------------------------------------------------------------------------- /fun/ice/ice2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice2.png -------------------------------------------------------------------------------- /fun/ice/ice3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice3.png -------------------------------------------------------------------------------- /fun/ice/ice4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice4.png -------------------------------------------------------------------------------- /fun/ice/ice5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice5.png -------------------------------------------------------------------------------- /fun/ice/ice6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice6.png -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /fun/ice/ice_tray.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/fun/ice/ice_tray.icns -------------------------------------------------------------------------------- /WJoy/dmg_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/WJoy/dmg_background.png -------------------------------------------------------------------------------- /UserNotification/screen.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/UserNotification/screen.jpg -------------------------------------------------------------------------------- /UserNotification/closebutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/UserNotification/closebutton.png -------------------------------------------------------------------------------- /UserNotification/closebutton_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/UserNotification/closebutton_pressed.png -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Versions/A/Growl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/UserNotification/Growl.framework/Versions/A/Growl -------------------------------------------------------------------------------- /examples/WATest/OCLog.framework/Versions/A/OCLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/examples/WATest/OCLog.framework/Versions/A/OCLog -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Wiimote: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/examples/WATest/Wiimote.framework/Versions/A/Wiimote -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Versions/A/Growl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/UserNotification/10.5/Growl.framework/Versions/A/Growl -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Versions/A/Headers/Growl.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef __OBJC__ 4 | # include 5 | #endif 6 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavcodec.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavcodec.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavcore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavcore.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavdevice.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavdevice.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavfilter.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavfilter.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavformat.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavformat.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libavutil.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libavutil.dylib -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/lib/libswscale.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/experimental/WiimoteAudioEngine/ffmpeg/lib/libswscale.dylib -------------------------------------------------------------------------------- /UserNotification/10.5/Growl.framework/Versions/A/Headers/Growl.h: -------------------------------------------------------------------------------- 1 | #include "GrowlDefines.h" 2 | 3 | #ifdef __OBJC__ 4 | # include "GrowlApplicationBridge.h" 5 | #endif 6 | #include "GrowlApplicationBridge-Carbon.h" 7 | -------------------------------------------------------------------------------- /VHID/VHID.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /WJoy/WJoy.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Versions/A/HID: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Versions/A/HID -------------------------------------------------------------------------------- /VHID/VHID.xcodeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/VHID/VHID.xcodeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /WJoy/WJoy.xcodeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tapesonthefloor/wjoy-foohid/HEAD/WJoy/WJoy.xcodeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/include/libavutil/avconfig.h: -------------------------------------------------------------------------------- 1 | /* Generated by ffconf */ 2 | #ifndef AVUTIL_AVCONFIG_H 3 | #define AVUTIL_AVCONFIG_H 4 | #define AV_HAVE_BIGENDIAN 0 5 | #define AV_HAVE_FAST_UNALIGNED 1 6 | #endif /* AVUTIL_AVCONFIG_H */ 7 | -------------------------------------------------------------------------------- /fun/ice/IceWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // IceWindow.h 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface IceWindow : NSWindow 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+Nunchunk.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+Nunchunk.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 10.03.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (Nunchunk) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+UDraw.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+UDraw.h 3 | // Wiimote 4 | // 5 | // Created by Michael Kessler on 10/4/14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (UDraw) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+Wiimote.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+Wiimote.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 10.03.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (Wiimote) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /WJoy/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainController : NSObject 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+BalanceBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+BalanceBoard.h 3 | // Wiimote 4 | // 5 | // Created by Alxn1 on 11.10.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (BalanceBoard) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /LocalizationUtils/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | SuperLocalizer 4 | 5 | Created by alxn1 on 05.12.12. 6 | Copyright 2012 alxn1. All rights reserved. 7 | */ 8 | 9 | CFBundleName = "Test Application"; 10 | CFBundleDisplayName = "Test Application"; -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+UProController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+UProController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 10.03.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (UProController) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /examples/WATest/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // WATest 4 | // 5 | // Created by alxn1 on 23.04.14. 6 | // Copyright 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainController : NSObject 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /LocalizationUtils/Russian.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* 2 | InfoPlist.strings 3 | SuperLocalizer 4 | 5 | Created by alxn1 on 05.12.12. 6 | Copyright 2012 alxn1. All rights reserved. 7 | */ 8 | 9 | CFBundleName = "Тестовое Приложение"; 10 | CFBundleDisplayName = "Тестовое Приложение"; -------------------------------------------------------------------------------- /OCLog/test.m: -------------------------------------------------------------------------------- 1 | // 2 | // test.m 3 | // OCLog 4 | // 5 | // Created by alxn1 on 20.02.14. 6 | // Copyright 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argC, const char *argV[]) 12 | { 13 | return NSApplicationMain(argC, argV); 14 | } 15 | -------------------------------------------------------------------------------- /WJoy/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char**)argv); 14 | } 15 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+ClassicController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+ClassicController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 10.03.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (ClassicController) 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /DMGEULA/NSObject+DMGEULA.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+DMGEULA.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSObject (DMGEULA) 12 | 13 | - (id)asType:(Class)cls; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /LocalizationUtils/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // test 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char**)argv); 14 | } 15 | -------------------------------------------------------------------------------- /UpdateChecker/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Updater 4 | // 5 | // Created by alxn1 on 17.10.12. 6 | // Copyright 2012 Dr. Web. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /examples/WATest/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // WATest 4 | // 5 | // Created by alxn1 on 23.04.14. 6 | // Copyright 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char**)argv); 14 | } 15 | -------------------------------------------------------------------------------- /UpdateChecker/UAppVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // UAppVersion.h 3 | // UpdateChecker 4 | // 5 | // Created by alxn1 on 17.10.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | typedef struct UAppVersion { 10 | int major; 11 | int minor; 12 | int patch; 13 | int subPatch; 14 | } UAppVersion; 15 | -------------------------------------------------------------------------------- /LocalizationUtils/NSString+Escape.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+Escape.h 3 | // LocalizationUtils 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSString (Escape) 12 | 13 | - (NSString*)escapedString; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /UserNotification/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char**)argv); 14 | } 15 | -------------------------------------------------------------------------------- /WJoy/WiimoteLEDsController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteLEDsController.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright alxn1. Web. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteLEDsController : NSObject 12 | { 13 | } 14 | 15 | + (void)start; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /Wiimote/WiimoteUnknownExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteUnknownExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 01.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteExtension.h" 10 | 11 | @interface WiimoteUnknownExtension : WiimoteExtension 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /fun/ice/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | srand(time(0)); 14 | return NSApplicationMain(argc, (const char**)argv); 15 | } 16 | -------------------------------------------------------------------------------- /Wiimote/HIDManager+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // HIDManager+Private.h 3 | // HID 4 | // 5 | // Created by alxn1 on 30.06.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import "HIDManager.h" 10 | 11 | @interface HIDManager (Private) 12 | 13 | - (void)HIDDeviceDisconnected:(HIDDevice*)device; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /WirtualJoy/WJoyTool.h: -------------------------------------------------------------------------------- 1 | // 2 | // WJoyTool.h 3 | // driver 4 | // 5 | // Created by alxn1 on 17.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WJoyTool : NSObject 12 | { 13 | } 14 | 15 | + (BOOL)loadDriver; 16 | + (BOOL)unloadDriver; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /LocalizationUtils/XibCocoaObjectInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // XibCocoaObjectInspector.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 04.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "XibObjectInspector+PlugIn.h" 10 | 11 | @interface XibCocoaObjectInspector : XibObjectInspector 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULAResource+DMG.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULAResource+DMG.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DMGEULAResource (DMG) 12 | 13 | - (NSError*)applyToDMG:(NSString*)pathToDMG; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /LocalizationUtils/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // test 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainController : NSObject 12 | { 13 | @private 14 | IBOutlet NSWindow *m_Window; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /experimental/VHID2/VHID.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHID.h 3 | // VHID 4 | // 5 | // Created by Alexander Serkov on 06.10.14. 6 | // Copyright (c) 2014 Alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | -------------------------------------------------------------------------------- /WJoy/WJoyLatestVersion.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UAVersion 6 | 0.7.1 7 | UAURL 8 | http://code.google.com/p/wjoy/ 9 | 10 | 11 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolUDraw.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolUDraw.h 3 | // Wiimote 4 | // 5 | // Created by Michael Kessler on 10/4/14. 6 | // 7 | 8 | typedef struct 9 | { 10 | uint8_t xOffset; 11 | uint8_t yOffset; 12 | uint8_t gridIndex; 13 | uint8_t pressure; 14 | uint8_t unused; 15 | uint8_t buttonState; 16 | } WiimoteDeviceUDrawReport; 17 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIOManager+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIOManager+Private.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIOManager.h" 10 | 11 | @interface WiimoteIOManager (Private) 12 | 13 | - (id)initWithOwner:(Wiimote*)owner device:(WiimoteDevice*)device; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /UserNotification/LeftTopNotificationLayoutManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // LeftTopNotificationLayoutManager.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 20.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NotificationLayoutManager.h" 10 | 11 | @interface LeftTopNotificationLayoutManager : NotificationLayoutManager 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /UserNotification/RightTopNotificationLayoutManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // RightTopNotificationLayoutManager.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 20.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NotificationLayoutManager.h" 10 | 11 | @interface RightTopNotificationLayoutManager : NotificationLayoutManager 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+LED.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+LED.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @interface WiimoteEventDispatcher (LED) 12 | 13 | - (void)postHighlightedLEDMaskChangedNotification:(NSUInteger)mask; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /UserNotification/LeftBottomNotificationLayoutManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // LeftBottomNotificationLayoutManager.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 20.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NotificationLayoutManager.h" 10 | 11 | @interface LeftBottomNotificationLayoutManager : NotificationLayoutManager 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Vibration.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Vibration.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @interface WiimoteEventDispatcher (Vibration) 12 | 13 | - (void)postVibrationStateChangedNotification:(BOOL)state; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /UserNotification/RightBottomNotificationLayoutManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // RightBottomNotificationLayoutManager.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 20.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NotificationLayoutManager.h" 10 | 11 | @interface RightBottomNotificationLayoutManager : NotificationLayoutManager 12 | { 13 | } 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /WJoy/UserActivityNotifier.h: -------------------------------------------------------------------------------- 1 | // 2 | // UserActivityNotifier.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 26.02.14. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface UserActivityNotifier : NSObject 12 | { 13 | @private 14 | NSDate *m_LastNotifyTime; 15 | } 16 | 17 | + (UserActivityNotifier*)sharedNotifier; 18 | 19 | - (void)notify; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/Wiimote+Tracking.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+Tracking.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Wiimote.h" 10 | 11 | @interface Wiimote (Tracking) 12 | 13 | + (NSArray*)connectedWiimotes; 14 | + (void)wiimoteConnected:(Wiimote*)wiimote; 15 | + (void)wiimoteDisconnected:(Wiimote*)wiimote; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /WJoy/NotificationCenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // NotificationCenter.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface NotificationCenter : NSObject< UserNotificationCenterDelegate > 13 | { 14 | } 15 | 16 | + (void)start; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Battery.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Battery.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @interface WiimoteEventDispatcher (Battery) 12 | 13 | - (void)postBatteryLevelUpdateNotification:(CGFloat)batteryLevel isLow:(BOOL)isLow; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /DMGEULA/NSObject+DMGEULA.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+DMGEULA.m 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NSObject+DMGEULA.h" 10 | 11 | @implementation NSObject (DMGEULA) 12 | 13 | - (id)asType:(Class)cls 14 | { 15 | if([self isKindOfClass:cls]) 16 | return self; 17 | 18 | return nil; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /LocalizationUtils/NSMutableAttributedString+StringValue.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableAttributedString+StringValue.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSMutableAttributedString (StringValue) 12 | 13 | - (NSString*)stringValue; 14 | - (void)setStringValue:(NSString*)string; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /UserNotification/GrowlUserNotificationCenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // GrowlUserNotificationCenter.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "UserNotificationCenterProtected.h" 10 | 11 | @interface GrowlUserNotificationCenter : UserNotificationCenter 12 | { 13 | @private 14 | NSObject *m_GrowlDelegate; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /UserNotification/OwnUserNotificationCenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // OwnUserNotificationCenter.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "UserNotificationCenterProtected.h" 10 | #import "NotificationSystem.h" 11 | 12 | @interface OwnUserNotificationCenter : UserNotificationCenter 13 | { 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /Wiimote/WiimoteExtension.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtension.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 28.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteExtension.h" 10 | 11 | @implementation WiimoteExtension 12 | 13 | - (Wiimote*)owner 14 | { 15 | return [[m_Owner retain] autorelease]; 16 | } 17 | 18 | - (NSString*)name 19 | { 20 | return @"Unknown"; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /UpdateChecker/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // Updater 4 | // 5 | // Created by alxn1 on 17.10.12. 6 | // Copyright 2012 Dr. Web. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainController : NSObject 12 | { 13 | @private 14 | IBOutlet NSTextView *m_Log; 15 | IBOutlet NSButton *m_StartButton; 16 | } 17 | 18 | - (IBAction)start:(id)sender; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /Wiimote/test.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // test 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argC, const char *argV[]) 12 | { 13 | // http://abstrakraft.org/cwiid/browser/wminput/plugins/ir_ptr/ir_ptr.c - 14 | // reimplement this ;) it's IR pointing algo 15 | 16 | return NSApplicationMain(argC, argV); 17 | } 18 | -------------------------------------------------------------------------------- /Wiimote/WiimoteBatteryPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteBatteryPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @interface WiimoteBatteryPart : WiimotePart 12 | { 13 | @private 14 | CGFloat m_Level; 15 | BOOL m_IsLow; 16 | } 17 | 18 | - (CGFloat)batteryLevel; 19 | - (BOOL)isBatteryLevelLow; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDevicePair.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDevicePair.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.06.13. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class IOBluetoothDevice; 12 | 13 | @interface WiimoteDevicePair : NSObject 14 | { 15 | @private 16 | BOOL m_IsFirstAttempt; 17 | } 18 | 19 | + (void)pairWithDevice:(IOBluetoothDevice*)device; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteButtonPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteButtonPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @interface WiimoteButtonPart : WiimotePart 13 | { 14 | @private 15 | BOOL m_ButtonState[WiimoteButtonCount]; 16 | } 17 | 18 | - (BOOL)isButtonPressed:(WiimoteButtonType)button; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVMutableAudioPacket.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVMutableAudioPacket.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AVMutableAudioPacket : AVAudioPacket 12 | { 13 | } 14 | 15 | - (id)initWithAudioFormat:(AVAudioFormat*)format; 16 | 17 | - (NSMutableData*)mutableData; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /WirtualJoy/WJoyToolInterface.h: -------------------------------------------------------------------------------- 1 | // 2 | // WJoyToolInterface.h 3 | // driver 4 | // 5 | // Created by alxn1 on 17.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #define WJoyToolLoadDriverCommand @"--load" 12 | #define WJoyToolUnloadDriverCommand @"--unload" 13 | #define WJoyToolRepairRightsCommand @"--repair-rights" 14 | 15 | #define WJoyToolName @"WJoyTool" 16 | -------------------------------------------------------------------------------- /Wiimote/Wiimote+Create.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+Create.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Wiimote.h" 10 | 11 | @class HIDDevice; 12 | @class IOBluetoothDevice; 13 | 14 | @interface Wiimote (Create) 15 | 16 | + (void)connectToHIDDevice:(HIDDevice*)device; 17 | + (void)connectToBluetoothDevice:(IOBluetoothDevice*)device; 18 | 19 | - (id)lowLevelDevice; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /UserNotification/AppleUserNotificationCenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppleUserNotificationCenter.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "UserNotificationCenterProtected.h" 10 | 11 | @interface AppleUserNotificationCenter : UserNotificationCenter 12 | { 13 | @private 14 | Class m_NotificationClass; 15 | Class m_NotificationCenterClass; 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /VHID/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 24.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "TestView.h" 10 | 11 | #import 12 | #import 13 | 14 | @interface MainController : NSObject 15 | { 16 | @private 17 | VHIDDevice *m_MouseState; 18 | WJoyDevice *m_VirtualMouse; 19 | } 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+IR.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+IR.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @class WiimoteIRPoint; 12 | 13 | @interface WiimoteEventDispatcher (IR) 14 | 15 | - (void)postIREnabledStateChangedNotification:(BOOL)enabled; 16 | - (void)postIRPointPositionChangedNotification:(WiimoteIRPoint*)point; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDDevice+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDDevice+Private.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 17.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import "VHIDDevice.h" 10 | 11 | @interface VHIDDevice (Private) 12 | 13 | - (id)initWithDescriptor:(NSData*)descriptor stateSize:(NSUInteger)stateSize; 14 | 15 | - (unsigned char*)mutableStateBytes; 16 | 17 | - (void)resetState; 18 | - (void)notifyAboutStateChanged; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioPacket.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioPacket.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AVAudioPacket : NSObject 12 | { 13 | @protected 14 | AVAudioFormat *m_Format; 15 | NSMutableData *m_Data; 16 | } 17 | 18 | - (AVAudioFormat*)format; 19 | - (NSData*)data; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Button.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Button.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @interface WiimoteEventDispatcher (Button) 13 | 14 | - (void)postButtonPressedNotification:(WiimoteButtonType)button; 15 | - (void)postButtonReleasedNotification:(WiimoteButtonType)button; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /UserNotification/AnimatedWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // AnimatedWindow.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 26.10.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AnimatedWindow : NSWindow 12 | { 13 | @private 14 | NSViewAnimation *m_CurrentAnimation; 15 | BOOL m_IsAnimationEnabled; 16 | } 17 | 18 | - (BOOL)isAnimationEnabled; 19 | - (void)setAnimationEnabled:(BOOL)enabled; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /WirtualJoy/WJoyAdminToolRight.h: -------------------------------------------------------------------------------- 1 | // 2 | // WJoyAdminToolRight.h 3 | // driver 4 | // 5 | // Created by alxn1 on 18.05.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface WJoyAdminToolRight : NSObject 13 | { 14 | @private 15 | AuthorizationRef m_AuthRef; 16 | } 17 | 18 | - (BOOL)isObtained; 19 | - (BOOL)obtain; 20 | - (void)discard; 21 | 22 | - (AuthorizationRef)authRef; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Extension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Extension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @interface WiimoteEventDispatcher (Extension) 13 | 14 | - (void)postExtensionConnectedNotification:(WiimoteExtension*)extension; 15 | - (void)postExtensionDisconnectedNotification:(WiimoteExtension*)extension; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /WirtualJoy/wirtual_joy_config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * wirtual_joy_config.h 3 | * wjoy 4 | * 5 | * Created by alxn1 on 12.07.12. 6 | * Copyright 2012 alxn1. All rights reserved. 7 | * 8 | */ 9 | 10 | #ifndef WIRTUAL_JOY_CONFIG_H 11 | #define WIRTUAL_JOY_CONFIG_H 12 | 13 | #define WirtualJoy com_alxn1_driver_WirtualJoy 14 | #define WirtualJoyDevice com_alxn1_driver_WirtualJoyDevice 15 | #define WirtualJoyUserClient com_alxn1_driver_WirtualJoyUserClient 16 | 17 | #endif /* WIRTUAL_JOY_CONFIG_H */ 18 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/WiimoteAudioPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAudioPart.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "WiimoteAudioSource.h" 11 | 12 | @interface WiimoteAudioPart : WiimotePart 13 | { 14 | } 15 | 16 | - (BOOL)playAudioData:(NSData*)data volume:(double)volume; 17 | - (BOOL)playAudio:(WiimoteAudioSource*)audioSource volume:(double)volume; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /WJoy/StatusBarItemController.h: -------------------------------------------------------------------------------- 1 | // 2 | // StatusBarItemController.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface StatusBarItemController : NSObject 12 | { 13 | @private 14 | NSMenu *m_Menu; 15 | NSStatusItem *m_Item; 16 | NSMenuItem *m_DiscoveryMenuItem; 17 | NSMenuItem *m_CheckUpdateMenuItem; 18 | } 19 | 20 | + (void)start; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteLEDPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteLEDPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @class WiimoteDevice; 12 | 13 | @interface WiimoteLEDPart : WiimotePart 14 | { 15 | @private 16 | WiimoteDevice *m_Device; 17 | } 18 | 19 | - (NSUInteger)highlightedLEDMask; 20 | - (void)setHighlightedLEDMask:(NSUInteger)mask; 21 | 22 | - (void)setDevice:(WiimoteDevice*)device; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Wiimote/WiimoteExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 28.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | @class WiimoteEventDispatcher; 13 | 14 | @interface WiimoteExtension : NSObject 15 | { 16 | @private 17 | Wiimote *m_Owner; 18 | WiimoteEventDispatcher *m_EventDispatcher; 19 | } 20 | 21 | - (Wiimote*)owner; 22 | 23 | - (NSString*)name; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Wiimote/WiimoteUProController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteUProController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 16.06.13. 6 | // 7 | 8 | #import "WiimoteGenericExtension.h" 9 | #import "WiimoteEventDispatcher+UProController.h" 10 | 11 | @interface WiimoteUProController : WiimoteGenericExtension< 12 | WiimoteUProControllerProtocol> 13 | { 14 | @private 15 | BOOL m_ButtonState[WiimoteUProControllerButtonCount]; 16 | NSPoint m_StickPositions[WiimoteUProControllerStickCount]; 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /Wiimote/WiimoteVibrationPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteVibrationPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @class WiimoteDevice; 12 | 13 | @interface WiimoteVibrationPart : WiimotePart 14 | { 15 | @private 16 | WiimoteDevice *m_Device; 17 | } 18 | 19 | - (BOOL)isVibrationEnabled; 20 | - (void)setVibrationEnabled:(BOOL)enabled; 21 | 22 | - (void)setDevice:(WiimoteDevice*)device; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ObjCDebug/MachOSymbol+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // MachOSymbol+Private.h 3 | // ObjCDebug 4 | // 5 | // Created by alxn1 on 26.11.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "MachOSymbol.h" 10 | 11 | @interface MachOSymbol (Private) 12 | 13 | + (MachOSymbol*)symbolWithName:(NSString*)name info32:(const struct nlist*)info; 14 | + (MachOSymbol*)symbolWithName:(NSString*)name info:(const struct nlist_64*)info; 15 | 16 | - (id)initWithName:(NSString*)name info:(const struct nlist_64*)info; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /UpdateChecker/NSString+UAppVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+UAppVersion.h 3 | // UpdateChecker 4 | // 5 | // Created by alxn1 on 17.10.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface NSString (UAppVersion) 14 | 15 | + (NSString*)stringWithAppVersion:(const UAppVersion*)version; 16 | 17 | - (id)initWithAppVersion:(const UAppVersion*)version; 18 | 19 | - (BOOL)parseAppVersion:(UAppVersion*)version; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIRPoint+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPoint+Private.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIRPoint.h" 10 | 11 | @interface WiimoteIRPoint (Private) 12 | 13 | + (WiimoteIRPoint*)pointWithOwner:(Wiimote*)owner index:(NSUInteger)index; 14 | 15 | - (id)initWithOwner:(Wiimote*)owner index:(NSUInteger)index; 16 | 17 | - (void)setPosition:(NSPoint)position; 18 | - (void)setOutOfView:(BOOL)outOfView; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /ObjCDebug/ObjCCallTracer.h: -------------------------------------------------------------------------------- 1 | // 2 | // ObjCCallTracer.h 3 | // ObjCDebug 4 | // 5 | // Created by alxn1 on 26.11.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ObjCCallTracer : NSObject 12 | { 13 | @private 14 | uint64_t m_LogEnableFn; 15 | uint64_t m_SetLogFnFn; 16 | BOOL m_IsEnabled; 17 | } 18 | 19 | + (ObjCCallTracer*)sharedInstance; 20 | 21 | @property (nonatomic, readwrite, assign) BOOL enabled; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Wiimote/WiimoteAccelerometerPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAccelerometerPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 03.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @class WiimoteAccelerometer; 12 | 13 | @interface WiimoteAccelerometerPart : WiimotePart 14 | { 15 | @private 16 | BOOL m_IsCalibrationDataReaded; 17 | WiimoteAccelerometer *m_Accelerometer; 18 | } 19 | 20 | - (WiimoteAccelerometer*)accelerometer; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteUDraw.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteUDraw.h 3 | // Wiimote 4 | // 5 | // Created by Michael Kessler on 10/4/14. 6 | // 7 | 8 | #import "WiimoteGenericExtension.h" 9 | #import "WiimoteEventDispatcher+UDraw.h" 10 | 11 | @interface WiimoteUDraw : WiimoteGenericExtension< 12 | WiimoteUDrawProtocol> 13 | { 14 | @private 15 | BOOL m_IsPenPressed; 16 | NSPoint m_PenPosition; 17 | CGFloat m_PenPressure; 18 | BOOL m_IsPenButtonPressed; 19 | } 20 | 21 | @end -------------------------------------------------------------------------------- /LocalizationUtils/NSComboBox+Items.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSComboBox+Items.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSComboBoxItem : NSObject 12 | { 13 | @private 14 | NSComboBox *m_Owner; 15 | NSUInteger m_Index; 16 | } 17 | 18 | - (NSString*)title; 19 | - (void)setTitle:(NSString*)title; 20 | 21 | @end 22 | 23 | @interface NSComboBox (Items) 24 | 25 | - (NSArray*)items; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Private.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @interface WiimoteEventDispatcher (Private) 12 | 13 | - (id)initWithOwner:(Wiimote*)owner; 14 | 15 | - (void)postConnectedNotification; 16 | - (void)postDisconnectNotification; 17 | 18 | - (void)setStateNotificationsEnabled:(BOOL)flag; 19 | - (void)setDelegate:(id)delegate; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIRPoint.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPoint.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIRPoint.h" 10 | 11 | @implementation WiimoteIRPoint 12 | 13 | - (NSUInteger)index 14 | { 15 | return m_Index; 16 | } 17 | 18 | - (BOOL)isOutOfView 19 | { 20 | return m_IsOutOfView; 21 | } 22 | 23 | - (NSPoint)position 24 | { 25 | return m_Position; 26 | } 27 | 28 | - (Wiimote*)owner 29 | { 30 | return m_Owner; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioEncoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioEncoder.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AVAudioEncoder : NSObject 12 | { 13 | } 14 | 15 | + (AVAudioEncoder*)yamahaADPCMEncoderWithAudioFormat:(AVAudioFormat*)format; 16 | 17 | - (NSString*)name; 18 | - (AVAudioFormat*)inputFormat; 19 | 20 | - (NSData*)encodePacket:(AVAudioPacket*)packet; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolIR.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolIR.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceIRInitAddress 0x04B00030 10 | #define WiimoteDeviceIRSensitivityBlockAddress1 0x04B00000 11 | #define WiimoteDeviceIRSensitivityBlockAddress2 0x04B0001A 12 | #define WiimoteDeviceIRModeAddress 0x04B00033 13 | 14 | #define WiimoteDeviceIRBeginInitValue 0x01 15 | #define WiimoteDeviceIREndInitValue 0x08 16 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULALanguage+SupportedLanguagesStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULALanguage+SupportedLanguagesStore.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 24.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface DMGEULALanguage (SupportedLanguagesStore) 14 | 15 | + (NSData*)saveSupportedLanguagesToPList:(NSError**)error; 16 | + (NSError*)loadSupportedLanguagesFromPList:(NSData*)plistData; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /Wiimote/HIDDevice+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // HIDDevice+Private.h 3 | // HID 4 | // 5 | // Created by alxn1 on 24.06.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import "HIDDevice.h" 10 | 11 | @interface HIDDevice (Private) 12 | 13 | - (id)initWithOwner:(HIDManager*)manager 14 | deviceRef:(IOHIDDeviceRef)handle 15 | options:(IOOptionBits)options; 16 | 17 | - (BOOL)openDevice; 18 | - (void)closeDevice; 19 | 20 | - (void)handleReport:(uint8_t*)report length:(CFIndex)length; 21 | - (void)disconnected; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Wiimote/Wiimote+PlugIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+PlugIn.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 03.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | 14 | @interface Wiimote (PlugIn) 15 | 16 | + (void)registerSupportedModelName:(NSString*)name; 17 | 18 | - (void)deviceConfigurationChanged; 19 | 20 | - (WiimotePart*)partWithClass:(Class)cls; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/WiimoteAudioSourceWrapper.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAudioSourceWrapper.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteAudioSource.h" 10 | #import "AVAudioEncoder.h" 11 | 12 | @interface WiimoteAudioSourceWrapper : WiimoteAudioSource 13 | { 14 | @private 15 | AVAudioSource *m_Source; 16 | AVAudioEncoder *m_Encoder; 17 | } 18 | 19 | + (WiimoteAudioSourceWrapper*)wrap:(AVAudioSource*)source; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioPacket.m: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioPacket.m 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVAudioPacket.h" 10 | 11 | @implementation AVAudioPacket 12 | 13 | - (id)init 14 | { 15 | [[super init] release]; 16 | return nil; 17 | } 18 | 19 | - (AVAudioFormat*)format 20 | { 21 | return [[m_Format retain] autorelease]; 22 | } 23 | 24 | - (NSData*)data 25 | { 26 | return [[m_Data retain] autorelease]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /LocalizationUtils/NSMatrix+ToolTipItem.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMatrix+ToolTipItem.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSMatrixToolTipItem : NSObject 12 | { 13 | @private 14 | NSCell *m_Cell; 15 | NSMatrix *m_Owner; 16 | } 17 | 18 | - (NSString*)toolTip; 19 | - (void)setToolTip:(NSString*)toolTip; 20 | 21 | @end 22 | 23 | @interface NSMatrix (ToolTipItem) 24 | 25 | - (NSArray*)toolTipItems; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /OCLog/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // OCLog 4 | // 5 | // Created by alxn1 on 20.02.14. 6 | // Copyright 2014 Dr. Web. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface MainController : NSObject< OCLogHandler > 14 | { 15 | @private 16 | IBOutlet NSTextView *m_Log; 17 | IBOutlet NSPopUpButton *m_UserLogLevel; 18 | IBOutlet NSTextField *m_UserInput; 19 | } 20 | 21 | - (IBAction)clearLog:(id)sender; 22 | - (IBAction)log:(id)sender; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /ObjCDebug/MachOSymbol.h: -------------------------------------------------------------------------------- 1 | // 2 | // MachOSymbol.h 3 | // ObjCDebug 4 | // 5 | // Created by alxn1 on 26.11.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface MachOSymbol : NSObject 14 | { 15 | @private 16 | NSString *m_Name; 17 | struct nlist_64 m_Info; 18 | } 19 | 20 | @property (nonatomic, readonly, copy) NSString *name; 21 | @property (nonatomic, readonly, assign) const struct nlist_64 *info; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 28.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | @class WiimoteEventDispatcher; 13 | 14 | @interface WiimoteExtension : NSObject 15 | { 16 | @private 17 | Wiimote *m_Owner; 18 | WiimoteEventDispatcher *m_EventDispatcher; 19 | } 20 | 21 | - (Wiimote*)owner; 22 | 23 | - (NSString*)name; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIRPoint.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPoint.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | 13 | @interface WiimoteIRPoint : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | NSPoint m_Position; 18 | BOOL m_IsOutOfView; 19 | NSUInteger m_Index; 20 | } 21 | 22 | - (NSUInteger)index; 23 | - (BOOL)isOutOfView; 24 | - (NSPoint)position; 25 | - (Wiimote*)owner; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Accelerometer.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Accelerometer.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 03.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | 11 | @interface WiimoteEventDispatcher (Accelerometer) 12 | 13 | - (void)postAccelerometerEnabledNotification:(BOOL)enabled; 14 | - (void)postAccelerometerGravityChangedNotificationX:(CGFloat)x y:(CGFloat)y z:(CGFloat)z; 15 | - (void)postAccelerometerAnglesChangedNotificationPitch:(CGFloat)pitch roll:(CGFloat)roll; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocolIR.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolIR.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceIRInitAddress 0x04B00030 10 | #define WiimoteDeviceIRSensitivityBlockAddress1 0x04B00000 11 | #define WiimoteDeviceIRSensitivityBlockAddress2 0x04B0001A 12 | #define WiimoteDeviceIRModeAddress 0x04B00033 13 | 14 | #define WiimoteDeviceIRBeginInitValue 0x01 15 | #define WiimoteDeviceIREndInitValue 0x08 16 | -------------------------------------------------------------------------------- /fun/ice/IceView.h: -------------------------------------------------------------------------------- 1 | // 2 | // IceView.h 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import "IceParticlesSystem.h" 10 | 11 | #import "ThreadTimer.h" 12 | 13 | @interface IceView : NSOpenGLView 14 | { 15 | @private 16 | IBOutlet NSMenuItem *m_MoutionBlurMenu; 17 | 18 | IceParticlesSystem *m_Particles; 19 | ThreadTimer *m_Timer; 20 | 21 | BOOL m_IsBeginQuit; 22 | int m_QuitValue; 23 | } 24 | 25 | - (void)beginQuit; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /ObjCDebug/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ObjCDebug 4 | // 5 | // Created by alxn1 on 27.11.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | int main(int argC, char *argV[]) 13 | { 14 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 15 | 16 | [ObjCCallTracer sharedInstance].enabled = YES; 17 | NSLog(@"%@", [@"some string" stringByAppendingFormat:@" %i", 120]); 18 | [ObjCCallTracer sharedInstance].enabled = NO; 19 | 20 | [pool drain]; 21 | return 0; 22 | } 23 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/Wiimote+Audio.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+Audio.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface Wiimote (Audio) 13 | 14 | - (BOOL)playAudioData:(NSData*)data volume:(double)volume; // must be 4000Hz Yamaha ADPCM data 15 | - (BOOL)playAudio:(WiimoteAudioSource*)audioSource volume:(double)volume; 16 | - (BOOL)playAudioFile:(NSString*)filePath volume:(double)volume; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /LocalizationUtils/NSMutableAttributedString+StringValue.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableAttributedString+StringValue.m 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "NSMutableAttributedString+StringValue.h" 10 | 11 | @implementation NSMutableAttributedString (StringValue) 12 | 13 | - (NSString*)stringValue 14 | { 15 | return [self string]; 16 | } 17 | 18 | - (void)setStringValue:(NSString*)string 19 | { 20 | [self replaceCharactersInRange:NSMakeRange(0, [self length]) withString:string]; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/Wiimote+PlugIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+PlugIn.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 03.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | 14 | @interface Wiimote (PlugIn) 15 | 16 | + (void)registerSupportedModelName:(NSString*)name; 17 | 18 | - (void)deviceConfigurationChanged; 19 | 20 | - (WiimotePart*)partWithClass:(Class)cls; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /LocalizationUtils/NSSegmentedControl+Items.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSSegmentedControl+Items.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSSegmentedControlItem : NSObject 12 | { 13 | @private 14 | NSSegmentedControl *m_Owner; 15 | NSUInteger m_Index; 16 | } 17 | 18 | - (NSString*)title; 19 | - (void)setTitle:(NSString*)title; 20 | 21 | - (NSMenu*)menu; 22 | 23 | @end 24 | 25 | @interface NSSegmentedControl (Items) 26 | 27 | - (NSArray*)items; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDeviceReport.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReport.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteDeviceReport.h" 10 | #import "WiimoteProtocol.h" 11 | #import "Wiimote.h" 12 | 13 | @implementation WiimoteDeviceReport 14 | 15 | - (NSUInteger)type 16 | { 17 | return m_Type; 18 | } 19 | 20 | - (const uint8_t*)data 21 | { 22 | return m_Data; 23 | } 24 | 25 | - (NSUInteger)length 26 | { 27 | return m_DataLength; 28 | } 29 | 30 | - (Wiimote*)wiimote 31 | { 32 | return m_Wiimote; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /fun/ice/ThreadTimer.h: -------------------------------------------------------------------------------- 1 | // 2 | // ThreadTimer.h 3 | // ice 4 | // 5 | // Created by alxn1 on 29.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ThreadTimer : NSObject 12 | { 13 | @private 14 | id m_Target; 15 | SEL m_Action; 16 | double m_Interval; 17 | 18 | BOOL m_NeedStop; 19 | BOOL m_IsStopped; 20 | } 21 | 22 | - (id)initWithTarget:(id)target 23 | action:(SEL)action 24 | interval:(double)interval; 25 | 26 | - (void)start; 27 | - (void)stop; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/WiimoteAudioSource.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAudioSource.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteAudioSource : NSObject 12 | { 13 | } 14 | 15 | + (WiimoteAudioSource*)sourceFromFile:(NSString*)filePath; 16 | + (WiimoteAudioSource*)sourceFromAVAudioSource:(AVAudioSource*)source; 17 | 18 | - (NSData*)nextAudioPacket; // must be 4000Hz Yamaha ADPCM data 19 | 20 | - (NSData*)getAllAudioData; // already implemented 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULAPathPreprocessor.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULAPathPreprocessor.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DMGEULAPathPreprocessor : NSObject 12 | { 13 | @private 14 | NSMutableDictionary *m_Variables; 15 | } 16 | 17 | + (DMGEULAPathPreprocessor*)sharedInstance; 18 | 19 | - (NSDictionary*)variables; 20 | - (void)setVariable:(NSString*)name value:(NSString*)value; 21 | - (void)removeVariable:(NSString*)name; 22 | 23 | - (NSString*)preprocessString:(NSString*)string; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteIRPoint.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPoint.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | 13 | @interface WiimoteIRPoint : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | NSPoint m_Position; 18 | BOOL m_IsOutOfView; 19 | NSUInteger m_Index; 20 | } 21 | 22 | - (NSUInteger)index; 23 | - (BOOL)isOutOfView; 24 | - (NSPoint)position; 25 | - (Wiimote*)owner; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem+PlugIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+PlugIn.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 18.01.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (PlugIn) 11 | 12 | + (NSDictionary*)notificationDictionary; 13 | 14 | + (void)registerNotification:(NSString*)name selector:(SEL)selector; 15 | 16 | - (void)postEventForWiimoteExtension:(WiimoteExtension*)extension path:(NSString*)path value:(CGFloat)value; 17 | - (void)postEventForWiimote:(Wiimote*)wiimote path:(NSString*)path value:(CGFloat)value; 18 | - (void)postEvent:(WiimoteEvent*)event; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioSourceConverter.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioSourceConverter.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVAudioSource.h" 10 | #import "AVAudioPacketConverter.h" 11 | 12 | @interface AVAudioSourceConverter : AVAudioSource 13 | { 14 | @private 15 | AVAudioSource *m_Source; 16 | AVAudioPacketConverter *m_Converter; 17 | } 18 | 19 | + (AVAudioSourceConverter*)wrapAudioSource:(AVAudioSource*)source 20 | format:(AVAudioFormat*)format; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Wiimote/HIDManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // HIDManager.h 3 | // HID 4 | // 5 | // Created by alxn1 on 24.06.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | FOUNDATION_EXPORT NSString *HIDManagerDeviceConnectedNotification; 12 | FOUNDATION_EXPORT NSString *HIDManagerDeviceDisconnectedNotification; 13 | 14 | FOUNDATION_EXPORT NSString *HIDManagerDeviceKey; 15 | 16 | @interface HIDManager : NSObject 17 | { 18 | @private 19 | IOHIDManagerRef m_Handle; 20 | NSMutableSet *m_ConnectedDevices; 21 | } 22 | 23 | + (HIDManager*)manager; 24 | 25 | - (NSSet*)connectedDevices; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIOManager+Private.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIOManager+Private.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIOManager+Private.h" 10 | 11 | @implementation WiimoteIOManager (Private) 12 | 13 | - (id)init 14 | { 15 | [[super init] release]; 16 | return nil; 17 | } 18 | 19 | - (id)initWithOwner:(Wiimote*)owner device:(WiimoteDevice*)device 20 | { 21 | self = [super init]; 22 | if(self == nil) 23 | return nil; 24 | 25 | m_Owner = owner; 26 | m_Device = device; 27 | 28 | return self; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /fun/ice/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class IceView; 12 | 13 | @interface MainController : NSObject 14 | { 15 | @private 16 | IBOutlet NSWindow *m_Window; 17 | IBOutlet IceView *m_IceView; 18 | IBOutlet NSMenu *m_StatusBarMenu; 19 | IBOutlet NSMenuItem *m_MoutionBlurMenuItem; 20 | 21 | NSStatusItem *m_StatusBarItem; 22 | } 23 | 24 | - (IBAction)toggleMoutionBlur:(id)sender; 25 | - (IBAction)exit:(id)sender; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULALanguage+SupportedLanguages.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULALanguage+SupportedLanguages.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 24.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DMGEULALanguage (SupportedLanguages) 12 | 13 | + (NSArray*)supportedLanguages; 14 | 15 | + (DMGEULALanguage*)findWithName:(NSString*)name; 16 | + (DMGEULALanguage*)findWithCode:(NSUInteger)code; 17 | 18 | + (void)addSupportedLanguage:(DMGEULALanguage*)language; 19 | + (void)removeSupportedLanguage:(DMGEULALanguage*)language; 20 | + (void)removeAllSupportedLanguages; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteUnknownExtension.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteUnknownExtension.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 01.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteUnknownExtension.h" 10 | #import "WiimoteExtension+PlugIn.h" 11 | 12 | @implementation WiimoteUnknownExtension 13 | 14 | + (void)load 15 | { 16 | [WiimoteExtension registerExtensionClass:[WiimoteUnknownExtension class]]; 17 | } 18 | 19 | + (void)probe:(WiimoteIOManager*)ioManager 20 | target:(id)target 21 | action:(SEL)action 22 | { 23 | [WiimoteExtension probeFinished:YES target:target action:action]; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULA.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULA.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 Dr. Web. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | #import 13 | #import 14 | #import 15 | #import 16 | 17 | #import 18 | #import 19 | #import 20 | #import 21 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioSource.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioSource.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AVAudioSource : NSObject 12 | { 13 | } 14 | 15 | + (AVAudioSource*)sourceFromFile:(NSString*)filePath; 16 | + (AVAudioSource*)sourceFromFile:(NSString*)filePath format:(AVAudioFormat*)format; 17 | 18 | + (AVAudioSource*)convertAudioSourceFormat:(AVAudioSource*)audioSource format:(AVAudioFormat*)format; 19 | 20 | - (AVAudioFormat*)format; 21 | - (AVAudioPacket*)nextPacket; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Wiimote/WiimoteMotionPlus.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteMotionPlus.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 13.09.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteExtension+PlugIn.h" 10 | #import "WiimoteMotionPlusDelegate.h" 11 | 12 | @interface WiimoteMotionPlus : WiimoteExtension 13 | { 14 | @private 15 | WiimoteIOManager *m_IOManager; 16 | WiimoteExtension *m_SubExtension; 17 | NSUInteger m_ReportCounter; 18 | NSUInteger m_ExtensionReportCounter; 19 | 20 | BOOL m_IsSubExtensionDisconnected; 21 | WiimoteMotionPlusReport m_Report; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolBalanceBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolBalanceBoard.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 11.10.14. 6 | // 7 | // 8 | 9 | #define WiimoteBalanceBoardCalibrationDataAddress 0x04A40024 10 | #define WiimoteBalanceBoardCalibrationDataSize 24 11 | 12 | typedef struct 13 | { 14 | uint16_t topRightPress; 15 | uint16_t bottomRightPress; 16 | uint16_t topLeftPress; 17 | uint16_t bottomLeftPress; 18 | } WiimoteBalanceBoardReport; 19 | 20 | typedef struct 21 | { 22 | WiimoteBalanceBoardReport kg0; 23 | WiimoteBalanceBoardReport kg17; 24 | WiimoteBalanceBoardReport kg34; 25 | } WiimoteBalanceBoardCalibrationData; 26 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDGameController+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDGameController+Private.h 3 | // VHID2 4 | // 5 | // Created by alxn1 on 28.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import "VHIDGameController.h" 10 | 11 | #import "VHIDDevice+Private.h" 12 | 13 | @interface VHIDGameController (Private) 14 | 15 | + (CGFloat)UInt16ToFloat:(uint16_t)value; 16 | + (uint16_t)FloatToUInt16:(CGFloat)value; 17 | 18 | - (id)initWithDescriptor:(NSData*)descriptor 19 | stateSize:(NSUInteger)stateSize 20 | axes:(VHIDGameControllerAxisSet)axes 21 | buttonCount:(NSUInteger)buttonCount; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /LocalizationUtils/NSBundle+NibLoadNotification.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSBundle+NibLoadNotification.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | APPKIT_EXTERN NSString *NSBundleNibDidLoadNotification; 12 | 13 | APPKIT_EXTERN NSString *NSBundleNibNameKey; // NSString 14 | APPKIT_EXTERN NSString *NSBundleNibOwnerKey; // id, optional 15 | APPKIT_EXTERN NSString *NSBundleNibBundleKey; // NSBundle, optional 16 | APPKIT_EXTERN NSString *NSBundleNibFilePathKey; // NSString 17 | APPKIT_EXTERN NSString *NSBundleNibRootObjectsKey; // NSArray of id 18 | -------------------------------------------------------------------------------- /LocalizationUtils/NSObject+ObjCRuntime.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+ObjCRuntime.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface NSObject (ObjCRuntime) 14 | 15 | + (Method)getMethod:(SEL)name; 16 | + (Method)getClassMethod:(SEL)name; 17 | 18 | + (BOOL)addMethod:(Method)method name:(SEL)name; 19 | + (BOOL)addClassMethod:(Method)method name:(SEL)name; 20 | 21 | + (BOOL)swizzleMethod:(SEL)originalName withMethod:(SEL)newName; 22 | + (BOOL)swizzleClassMethod:(SEL)originalName withMethod:(SEL)newName; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /UserNotification/UserNotificationCenterProtected.h: -------------------------------------------------------------------------------- 1 | // 2 | // UserNotificationCenterProtected.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 23.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "UserNotificationCenter.h" 10 | 11 | @interface UserNotificationCenter (Protected) 12 | 13 | + (void)registerImpl:(UserNotificationCenter*)impl; 14 | 15 | + (BOOL)shouldDeliverNotification:(UserNotification*)notification 16 | center:(UserNotificationCenter*)center; 17 | 18 | + (void)notificationClicked:(UserNotification*)notification 19 | center:(UserNotificationCenter*)center; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+BalanceBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+BalanceBoard.h 3 | // WiimoteBalanceBoard 4 | // 5 | // Created by alxn1 on 10.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteBalanceBoardDelegate.h" 11 | 12 | @class WiimoteBalanceBoard; 13 | 14 | @interface WiimoteEventDispatcher (BalanceBoard) 15 | 16 | - (void)postBalanceBoard:(WiimoteBalanceBoard*)balanceBoard 17 | topLeftPress:(double)topLeft 18 | topRightPress:(double)topRight 19 | bottomLeftPress:(double)bottomLeft 20 | bottomRightPress:(double)bottomRight; 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteEventSystem+PlugIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem+PlugIn.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 18.01.14. 6 | // 7 | 8 | #import 9 | 10 | @interface WiimoteEventSystem (PlugIn) 11 | 12 | + (NSDictionary*)notificationDictionary; 13 | 14 | + (void)registerNotification:(NSString*)name selector:(SEL)selector; 15 | 16 | - (void)postEventForWiimoteExceptions:(WiimoteExtension*)extension path:(NSString*)path value:(CGFloat)value; 17 | - (void)postEventForWiimote:(Wiimote*)wiimote path:(NSString*)path value:(CGFloat)value; 18 | - (void)postEvent:(WiimoteEvent*)event; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVYamahaADPCMEncoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVYamahaADPCMEncoder.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVAudioEncoder.h" 10 | 11 | #import "avcodec.h" 12 | 13 | @interface AVYamahaADPCMEncoder : AVAudioEncoder 14 | { 15 | @private 16 | AVAudioFormat *m_InputFormat; 17 | 18 | NSMutableData *m_FrameBuffer; 19 | NSMutableData *m_OutputBuffer; 20 | NSUInteger m_FrameBufferDataSize; 21 | 22 | AVCodecContext *m_Context; 23 | } 24 | 25 | - (id)initWithAudioFormat:(AVAudioFormat*)format; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDeviceReport.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReport.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class WiimoteDevice; 12 | @class Wiimote; 13 | 14 | @interface WiimoteDeviceReport : NSObject 15 | { 16 | @private 17 | NSUInteger m_Type; 18 | WiimoteDevice *m_Device; 19 | Wiimote *m_Wiimote; 20 | const uint8_t *m_Data; 21 | NSUInteger m_DataLength; 22 | } 23 | 24 | - (NSUInteger)type; // WiimoteDeviceReportType 25 | 26 | - (const uint8_t*)data; 27 | - (NSUInteger)length; 28 | 29 | - (Wiimote*)wiimote; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /fun/ice/IceParticlesSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // IceParticlesSystem.h 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import "IceParticle.h" 10 | 11 | @interface IceParticlesSystem : NSObject 12 | { 13 | @private 14 | NSRect m_ContentRect; 15 | unsigned long long m_FramesCounter; 16 | NSMutableArray *m_Particles; 17 | NSArray *m_Textures; 18 | } 19 | 20 | - (id)initWithContentRect:(NSRect)contentRect; 21 | 22 | - (void)setContentRect:(NSRect)contentRect; 23 | - (void)nextFrame; 24 | - (void)draw:(float)alpha moutionBlur:(BOOL)moutionBlur; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 18.01.14. 6 | // 7 | 8 | #import 9 | 10 | FOUNDATION_EXPORT NSString *WiimoteEventSystemNotification; 11 | 12 | FOUNDATION_EXPORT NSString *WiimoteEventKey; 13 | 14 | @interface NSObject (WiimoteEventSystemObserver) 15 | 16 | - (void)wiimoteEvent:(WiimoteEvent*)event; 17 | 18 | @end 19 | 20 | @interface WiimoteEventSystem : NSObject 21 | { 22 | @private 23 | NSMutableSet *m_Observers; 24 | } 25 | 26 | + (WiimoteEventSystem*)defaultEventSystem; 27 | 28 | - (void)addObserver:(id)observer; 29 | - (void)removeObserver:(id)observer; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIRPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @class WiimoteIRPoint; 12 | 13 | @interface WiimoteIRPart : WiimotePart 14 | { 15 | @private 16 | BOOL m_IsEnabled; 17 | BOOL m_IsHardwareEnabled; 18 | NSInteger m_IRReportMode; 19 | NSInteger m_ReportType; 20 | NSInteger m_ReportCounter; 21 | 22 | NSArray *m_Points; 23 | } 24 | 25 | - (BOOL)isEnabled; 26 | - (void)setEnabled:(BOOL)enabled; 27 | 28 | - (WiimoteIRPoint*)point:(NSUInteger)index; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 06.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceRoutineExtensionProbeAddress 0x04A400FA 10 | #define WiimoteDeviceRoutineExtensionInitAddress1 0x04A400F0 11 | #define WiimoteDeviceRoutineExtensionInitAddress2 0x04A400FB 12 | #define WiimoteDeviceRoutineExtensionInitValue1 0x55 13 | #define WiimoteDeviceRoutineExtensionInitValue2 0x00 14 | 15 | #define WiimoteDeviceRoutineExtensionCalibrationDataAddress 0x04A40020 16 | #define WiimoteDeviceRoutineExtensionCalibrationDataSize 16 17 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+MotionPlus.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+MotionPlus.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.09.12. 6 | // 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteMotionPlusDelegate.h" 11 | 12 | @interface WiimoteEventDispatcher (MotionPlus) 13 | 14 | - (void)postMotionPlus:(WiimoteMotionPlusExtension*)motionPlus 15 | extensionConnected:(WiimoteExtension*)extension; 16 | 17 | - (void)postMotionPlus:(WiimoteMotionPlusExtension*)motionPlus 18 | extensionDisconnected:(WiimoteExtension*)extension; 19 | 20 | - (void)postMotionPlus:(WiimoteMotionPlusExtension*)motionPlus 21 | report:(const WiimoteMotionPlusReport*)report; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /VHID/TestView.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestView.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 24.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class TestView; 12 | 13 | typedef enum 14 | { 15 | TestViewKeyUp, 16 | TestViewKeyDown, 17 | TestViewKeyLeft, 18 | TestViewKeyRight 19 | } TestViewKey; 20 | 21 | @protocol TestViewDelegate 22 | 23 | - (void)testView:(TestView*)view keyPressed:(TestViewKey)key; 24 | 25 | @end 26 | 27 | @interface TestView : NSView 28 | { 29 | @private 30 | id m_Delegate; 31 | } 32 | 33 | - (id)delegate; 34 | - (void)setDelegate:(id)obj; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioEncoder.m: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioEncoder.m 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVYamahaADPCMEncoder.h" 10 | 11 | @implementation AVAudioEncoder 12 | 13 | + (AVAudioEncoder*)yamahaADPCMEncoderWithAudioFormat:(AVAudioFormat*)format 14 | { 15 | return [[[AVYamahaADPCMEncoder alloc] initWithAudioFormat:format] autorelease]; 16 | } 17 | 18 | - (NSString*)name 19 | { 20 | return nil; 21 | } 22 | 23 | - (AVAudioFormat*)inputFormat 24 | { 25 | return nil; 26 | } 27 | 28 | - (NSData*)encodePacket:(AVAudioPacket*)packet 29 | { 30 | return nil; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Wiimote/Wiimote+PlugIn.m: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+PlugIn.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 03.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Wiimote+PlugIn.h" 10 | #import "WiimoteInquiry.h" 11 | #import "WiimotePartSet.h" 12 | #import "WiimoteDevice.h" 13 | 14 | @implementation Wiimote (PlugIn) 15 | 16 | + (void)registerSupportedModelName:(NSString*)name 17 | { 18 | [WiimoteInquiry registerSupportedModelName:name]; 19 | } 20 | 21 | - (void)deviceConfigurationChanged 22 | { 23 | [m_Device requestReportType:[m_PartSet bestReportType]]; 24 | } 25 | 26 | - (WiimotePart*)partWithClass:(Class)cls 27 | { 28 | return [m_PartSet partWithClass:cls]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULALanguage+NSDictionary.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULALanguage+NSDictionary.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | FOUNDATION_EXTERN NSString *DMGEULALanguageNameKey; 12 | FOUNDATION_EXTERN NSString *DMGEULALanguageCodeKey; 13 | FOUNDATION_EXTERN NSString *DMGEULALanguageLocalizedStringsKey; 14 | FOUNDATION_EXTERN NSString *DMGEULALanguageEncodingKey; 15 | FOUNDATION_EXTERN NSString *DMGEULALanguageUserDataKey; 16 | 17 | @interface DMGEULALanguage (NSDictionary) 18 | 19 | + (DMGEULALanguage*)withDictionary:(NSDictionary*)dictionary; 20 | 21 | - (NSDictionary*)asDictionary; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+UDraw.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+UDraw.h 3 | // Wiimote 4 | // 5 | // Created by Michael Kessler on 10/4/14. 6 | // 7 | 8 | #import "WiimoteEventDispatcher.h" 9 | #import "WiimoteUDrawDelegate.h" 10 | 11 | @interface WiimoteEventDispatcher (UDraw) 12 | 13 | - (void)postUDrawPenPressed:(WiimoteUDrawExtension*)uDraw; 14 | - (void)postUDrawPenReleased:(WiimoteUDrawExtension*)uDraw; 15 | 16 | - (void)postUDraw:(WiimoteUDrawExtension*)uDraw 17 | penPositionChanged:(NSPoint)position 18 | pressure:(CGFloat)pressure; 19 | 20 | - (void)postUDrawPenButtonPressed:(WiimoteUDrawExtension*)uDraw; 21 | - (void)postUDrawPenButtonReleased:(WiimoteUDrawExtension*)uDraw; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULAResource+DeepStore.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULAResource+DeepStore.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 25.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | FOUNDATION_EXTERN NSString *DMGEULAResourceDeepStoreLanguagesKey; 14 | FOUNDATION_EXTERN NSString *DMGEULAResourceDeepStoreDefaultLanguageNameKey; 15 | FOUNDATION_EXTERN NSString *DMGEULAResourceDeepStoreLanguageLicensePathKey; 16 | 17 | @interface DMGEULAResource (DeepStore) 18 | 19 | + (DMGEULAResource*)fromDeepPList:(NSData*)plistData error:(NSError**)error; 20 | 21 | - (NSData*)asDeepPList:(NSError**)error; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Frameworks/HID.framework/Versions/A/Headers/HIDManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // HIDManager.h 3 | // HID 4 | // 5 | // Created by alxn1 on 24.06.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | FOUNDATION_EXPORT NSString *HIDManagerDeviceConnectedNotification; 12 | FOUNDATION_EXPORT NSString *HIDManagerDeviceDisconnectedNotification; 13 | 14 | FOUNDATION_EXPORT NSString *HIDManagerDeviceKey; 15 | 16 | @interface HIDManager : NSObject 17 | { 18 | @private 19 | IOHIDManagerRef m_Handle; 20 | NSMutableSet *m_ConnectedDevices; 21 | } 22 | 23 | + (HIDManager*)manager; 24 | 25 | - (NSSet*)connectedDevices; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /WirtualJoy/wirtual_joy.h: -------------------------------------------------------------------------------- 1 | /* 2 | * wirtual_joy.h 3 | * wjoy 4 | * 5 | * Created by alxn1 on 13.07.12. 6 | * Copyright 2012 alxn1. All rights reserved. 7 | * 8 | */ 9 | 10 | #ifndef WIRTUAL_JOY_H 11 | #define WIRTUAL_JOY_H 12 | 13 | #include 14 | #include "wirtual_joy_config.h" 15 | 16 | class WirtualJoy : public IOService 17 | { 18 | OSDeclareDefaultStructors(WirtualJoy) 19 | public: 20 | virtual bool start(IOService *provider); 21 | 22 | virtual bool handleOpen( 23 | IOService *forClient, 24 | IOOptionBits options, 25 | void *arg); 26 | }; 27 | 28 | #endif /* WIRTUAL_JOY_H */ 29 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteDeviceReport.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReport.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class WiimoteDevice; 12 | @class Wiimote; 13 | 14 | @interface WiimoteDeviceReport : NSObject 15 | { 16 | @private 17 | NSUInteger m_Type; 18 | WiimoteDevice *m_Device; 19 | Wiimote *m_Wiimote; 20 | const uint8_t *m_Data; 21 | NSUInteger m_DataLength; 22 | } 23 | 24 | - (NSUInteger)type; // WiimoteDeviceReportType 25 | 26 | - (const uint8_t*)data; 27 | - (NSUInteger)length; 28 | 29 | - (Wiimote*)wiimote; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDMouse.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDMouse.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 17.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum 12 | { 13 | VHIDMouseButtonTypeLeft = (1 << 0), 14 | VHIDMouseButtonTypeRight = (1 << 1), 15 | VHIDMouseButtonTypeMiddle = (1 << 2) 16 | } VHIDMouseButtonType; 17 | 18 | @interface VHIDMouse : VHIDDevice 19 | 20 | + (VHIDMouse*)mouse; 21 | 22 | - (BOOL)isButtonPressed:(VHIDMouseButtonType)button; 23 | - (void)setButton:(VHIDMouseButtonType)button pressed:(BOOL)pressed; 24 | 25 | - (void)updateRelativePosition:(NSPoint)positionDelta; // NSPoint([-127, 127], [-127, 127]) 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteEventSystem.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventSystem.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 18.01.14. 6 | // 7 | 8 | #import 9 | 10 | FOUNDATION_EXPORT NSString *WiimoteEventSystemNotification; 11 | 12 | FOUNDATION_EXPORT NSString *WiimoteEventKey; 13 | 14 | @interface NSObject (WiimoteEventSystemObserver) 15 | 16 | - (void)wiimoteEvent:(WiimoteEvent*)event; 17 | 18 | @end 19 | 20 | @interface WiimoteEventSystem : NSObject 21 | { 22 | @private 23 | NSMutableSet *m_Observers; 24 | } 25 | 26 | + (WiimoteEventSystem*)defaultEventSystem; 27 | 28 | - (void)addObserver:(id)observer; 29 | - (void)removeObserver:(id)observer; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocolExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 06.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceRoutineExtensionProbeAddress 0x04A400FA 10 | #define WiimoteDeviceRoutineExtensionInitAddress1 0x04A400F0 11 | #define WiimoteDeviceRoutineExtensionInitAddress2 0x04A400FB 12 | #define WiimoteDeviceRoutineExtensionInitValue1 0x55 13 | #define WiimoteDeviceRoutineExtensionInitValue2 0x00 14 | 15 | #define WiimoteDeviceRoutineExtensionCalibrationDataAddress 0x04A40020 16 | #define WiimoteDeviceRoutineExtensionCalibrationDataSize 16 17 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULAResource+Store.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULAResource+Store.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 24.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | FOUNDATION_EXTERN NSString *DMGEULAResourceLocalizationsKey; 14 | FOUNDATION_EXTERN NSString *DMGEULAResourceDefaultLanguageCodeKey; 15 | FOUNDATION_EXTERN NSString *DMGEULAResourceLanguageCodeKey; 16 | FOUNDATION_EXTERN NSString *DMGEULAResourceLicensePathKey; 17 | 18 | @interface DMGEULAResource (Store) 19 | 20 | + (DMGEULAResource*)fromPList:(NSData*)plistData error:(NSError**)error; 21 | 22 | - (NSData*)asPList:(NSError**)error; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /Wiimote/WiimoteWatchdog.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteWatchdog.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | FOUNDATION_EXPORT NSString *WiimoteWatchdogEnabledChangedNotification; 12 | FOUNDATION_EXPORT NSString *WiimoteWatchdogPingNotification; 13 | 14 | @interface WiimoteWatchdog : NSObject 15 | { 16 | @private 17 | NSTimer *m_Timer; 18 | BOOL m_IsPingNotificationEnabled; 19 | } 20 | 21 | + (WiimoteWatchdog*)sharedWatchdog; 22 | 23 | - (BOOL)isEnabled; 24 | - (void)setEnabled:(BOOL)enabled; 25 | 26 | - (BOOL)isPingNotificationEnabled; 27 | - (void)setPingNotificationEnabled:(BOOL)enabled; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVFileAudioSource.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVFileAudioSource.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVAudioSource.h" 10 | #import "AVMutableAudioPacket.h" 11 | 12 | #import "avformat.h" 13 | #import "avcodec.h" 14 | 15 | @interface AVFileAudioSource : AVAudioSource 16 | { 17 | @private 18 | AVAudioFormat *m_Format; 19 | AVMutableAudioPacket *m_Packet; 20 | AVFormatContext *m_Context; 21 | NSUInteger m_AudioStreamIndex; 22 | AVCodecContext *m_CodecContext; 23 | } 24 | 25 | + (AVFileAudioSource*)sourceFromFile:(NSString*)filePath; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+UProController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+UProController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 16.06.13. 6 | // 7 | 8 | #import "WiimoteEventDispatcher.h" 9 | #import "WiimoteUProControllerDelegate.h" 10 | 11 | @interface WiimoteEventDispatcher (UProController) 12 | 13 | - (void)postUProController:(WiimoteUProControllerExtension*)uPro 14 | buttonPressed:(WiimoteUProControllerButtonType)button; 15 | 16 | - (void)postUProController:(WiimoteUProControllerExtension*)uPro 17 | buttonReleased:(WiimoteUProControllerButtonType)button; 18 | 19 | - (void)postUProController:(WiimoteUProControllerExtension*)uPro 20 | stick:(WiimoteUProControllerStickType)stick 21 | positionChanged:(NSPoint)position; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /VHID/VHIDButtonCollection.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDButtonCollection.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 23.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface VHIDButtonCollection : NSObject 12 | { 13 | @private 14 | NSUInteger m_ButtonCount; 15 | NSData *m_Descriptor; 16 | NSMutableData *m_State; 17 | } 18 | 19 | + (NSUInteger)maxButtonCount; 20 | 21 | - (id)initWithButtonCount:(NSUInteger)buttonCount; 22 | 23 | - (NSUInteger)buttonCount; 24 | 25 | - (BOOL)isButtonPressed:(NSUInteger)buttonIndex; 26 | - (void)setButton:(NSUInteger)buttonIndex pressed:(BOOL)pressed; 27 | - (void)reset; 28 | 29 | - (NSData*)descriptor; 30 | - (NSData*)state; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /LocalizationUtils/MainController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.m 3 | // test 4 | // 5 | // Created by alxn1 on 05.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "MainController.h" 10 | 11 | @implementation MainController 12 | 13 | - (void)awakeFromNib 14 | { 15 | // Если окно будет само показываться из xib-а, можно будет (если приглядется) 16 | // увидеть небольшое мерцание текста при первом появлении окна - текст будет 17 | // локализован чуть позже, после появления окна. 18 | // И тут показывать окно нельзя - awakeFromNib вызывается до процесса 19 | // локализации. 20 | [m_Window performSelector:@selector(makeKeyAndOrderFront:) 21 | withObject:nil 22 | afterDelay:0.0]; 23 | } 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ObjCDebug/MachOSymbolMap.h: -------------------------------------------------------------------------------- 1 | // 2 | // MachOSymbolMap.h 3 | // ObjCDebug 4 | // 5 | // Created by alxn1 on 26.11.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum { 12 | MachOArchTypeX86, 13 | MachOArchTypeX86_64 14 | } MachOArchType; 15 | 16 | @interface MachOSymbolMap : NSObject 17 | { 18 | @private 19 | NSMutableDictionary *m_Map; 20 | NSMutableDictionary *m_AddressMap; 21 | } 22 | 23 | + (MachOSymbolMap*)loadFromFile:(NSString*)path; 24 | + (MachOSymbolMap*)loadFromFile:(NSString*)path arch:(MachOArchType)arch; 25 | 26 | - (MachOSymbol*)findWithName:(NSString*)name; 27 | - (MachOSymbol*)findWithAddress:(uint64_t)address; 28 | 29 | - (NSEnumerator*)symbolEnumerator; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Wiimote/WiimoteNunchuck.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteNunchuck.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteGenericExtension.h" 10 | #import "WiimoteEventDispatcher+Nunchuck.h" 11 | 12 | @class WiimoteAccelerometer; 13 | 14 | @interface WiimoteNunchuck : WiimoteGenericExtension< 15 | WiimoteNunchuckProtocol> 16 | { 17 | @private 18 | BOOL m_IsCalibrationDataReaded; 19 | 20 | BOOL m_ButtonState[WiimoteNunchuckButtonCount]; 21 | 22 | NSPoint m_StickPosition; 23 | WiimoteDeviceStickCalibrationData m_StickCalibrationData; 24 | 25 | WiimoteAccelerometer *m_Accelerometer; 26 | } 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteWatchdog.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteWatchdog.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | FOUNDATION_EXPORT NSString *WiimoteWatchdogEnabledChangedNotification; 12 | FOUNDATION_EXPORT NSString *WiimoteWatchdogPingNotification; 13 | 14 | @interface WiimoteWatchdog : NSObject 15 | { 16 | @private 17 | NSTimer *m_Timer; 18 | BOOL m_IsPingNotificationEnabled; 19 | } 20 | 21 | + (WiimoteWatchdog*)sharedWatchdog; 22 | 23 | - (BOOL)isEnabled; 24 | - (void)setEnabled:(BOOL)enabled; 25 | 26 | - (BOOL)isPingNotificationEnabled; 27 | - (void)setPingNotificationEnabled:(BOOL)enabled; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /Wiimote/HID-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+LED.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+LED.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+LED.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @implementation WiimoteEventDispatcher (LED) 13 | 14 | - (void)postHighlightedLEDMaskChangedNotification:(NSUInteger)mask 15 | { 16 | [[self delegate] wiimote:[self owner] highlightedLEDMaskChanged:mask]; 17 | 18 | if([self isStateNotificationsEnabled]) 19 | { 20 | [self postNotification:WiimoteHighlightedLEDMaskChangedNotification 21 | param:[NSNumber numberWithInteger:mask] 22 | key:WiimoteHighlightedLEDMaskKey]; 23 | } 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDDevice.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDDevice.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 17.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class VHIDDevice; 12 | 13 | @protocol VHIDDeviceDelegate 14 | 15 | - (void)VHIDDevice:(VHIDDevice*)device stateChanted:(NSData*)state; 16 | 17 | @end 18 | 19 | @interface VHIDDevice : NSObject 20 | { 21 | @private 22 | NSData *m_Descriptor; 23 | NSMutableData *m_State; 24 | id m_Delegate; 25 | } 26 | 27 | - (NSData*)descriptor; 28 | - (NSData*)state; 29 | 30 | - (void)reset; 31 | 32 | - (id)delegate; 33 | - (void)setDelegate:(id)delegate; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULA-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Vibration.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Vibration.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+Vibration.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @implementation WiimoteEventDispatcher (Vibration) 13 | 14 | - (void)postVibrationStateChangedNotification:(BOOL)state 15 | { 16 | [[self delegate] wiimote:[self owner] vibrationStateChanged:state]; 17 | 18 | if([self isStateNotificationsEnabled]) 19 | { 20 | [self postNotification:WiimoteVibrationStateChangedNotification 21 | param:[NSNumber numberWithBool:state] 22 | key:WiimoteVibrationStateKey]; 23 | } 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /WJoy/MainController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.m 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "MainController.h" 10 | #import "WiimoteAutoWrapper.h" 11 | #import "StatusBarItemController.h" 12 | #import "NotificationCenter.h" 13 | #import "WiimoteLEDsController.h" 14 | 15 | #import 16 | 17 | @implementation MainController 18 | 19 | - (void)awakeFromNib 20 | { 21 | [NotificationCenter start]; 22 | [WiimoteLEDsController start]; 23 | [StatusBarItemController start]; 24 | [WiimoteAutoWrapper setMaxConnectedDevices:4]; 25 | [WiimoteAutoWrapper start]; 26 | 27 | [[UAppUpdateChecker sharedInstance] run]; 28 | 29 | [Wiimote beginDiscovery]; 30 | } 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDeviceReadMemHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReadMemHandler.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class WiimoteDevice; 12 | 13 | @interface WiimoteDeviceReadMemHandler : NSObject 14 | { 15 | @private 16 | NSRange m_MemoryRange; 17 | NSMutableData *m_ReadedData; 18 | id m_Target; 19 | SEL m_Action; 20 | } 21 | 22 | - (id)initWithMemoryRange:(NSRange)memoryRange 23 | target:(id)target 24 | action:(SEL)action; 25 | 26 | - (NSRange)memoryRange; 27 | 28 | - (BOOL)isAllDataReaded; 29 | - (void)handleData:(const uint8_t*)data length:(NSUInteger)length; 30 | 31 | - (void)errorOccured; 32 | - (void)disconnected; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /WirtualJoy/WirtualJoy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | FMWK 15 | CFBundleShortVersionString 16 | 1.1 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDeviceReport+Private.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReport+Private.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteDeviceReport.h" 10 | 11 | @interface WiimoteDeviceReport (Private) 12 | 13 | + (WiimoteDeviceReport*)deviceReportWithType:(NSUInteger)type 14 | data:(const uint8_t*)data 15 | length:(NSUInteger)length 16 | device:(WiimoteDevice*)device; 17 | 18 | - (id)initWithDevice:(WiimoteDevice*)device; 19 | 20 | - (BOOL)updateFromReportData:(const uint8_t*)data length:(NSUInteger)length; 21 | 22 | - (WiimoteDevice*)device; 23 | 24 | - (void)setWiimote:(Wiimote*)wiimote; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /LocalizationUtils/LocalizationUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // LocalizationUtils.h 3 | // LocalizationUtils 4 | // 5 | // Created by alxn1 on 06.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | -------------------------------------------------------------------------------- /WJoy/LoginItemsList.h: -------------------------------------------------------------------------------- 1 | // 2 | // LoginItemsList.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 12.03.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef enum 12 | { 13 | LoginItemsListDomainUser, 14 | LoginItemsListDomainSystem 15 | } LoginItemsListDomain; 16 | 17 | @interface LoginItemsList : NSObject 18 | { 19 | @private 20 | LSSharedFileListRef m_List; 21 | LoginItemsListDomain m_Domain; 22 | } 23 | 24 | + (LoginItemsList*)userItemsList; 25 | + (LoginItemsList*)systemItemsList; 26 | 27 | - (LoginItemsListDomain)domain; 28 | 29 | - (NSArray*)allPaths; 30 | 31 | - (BOOL)isItemWithPathExists:(NSString*)path; 32 | - (BOOL)addItemWithPath:(NSString*)path; 33 | - (BOOL)removeItemWithPath:(NSString*)path; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolNunchuck.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolNunchuck.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 06.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | typedef enum 10 | { 11 | WiimoteDeviceNunchuckReportButtonMaskC = 0x2, 12 | WiimoteDeviceNunchuckReportButtonMaskZ = 0x1 13 | } WiimoteDeviceNunchuckReportButtonMask; 14 | 15 | typedef struct 16 | { 17 | uint8_t stickX; 18 | uint8_t stickY; 19 | uint8_t accelerometerX; 20 | uint8_t accelerometerY; 21 | uint8_t accelerometerZ; 22 | uint8_t acceleromererXYZAndButtonState; 23 | } WiimoteDeviceNunchuckReport; 24 | 25 | typedef struct 26 | { 27 | WiimoteDeviceAccelerometerCalibrationData accelerometer; 28 | WiimoteDeviceStickCalibrationData stick; 29 | } WiimoteDeviceNunchuckCalibrationData; 30 | -------------------------------------------------------------------------------- /WirtualJoy/wirtual_joy.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * wirtual_joy.cpp 3 | * wjoy 4 | * 5 | * Created by alxn1 on 13.07.12. 6 | * Copyright 2012 alxn1. All rights reserved. 7 | * 8 | */ 9 | 10 | #include "wirtual_joy.h" 11 | #include "wirtual_joy_debug.h" 12 | 13 | #define super IOService 14 | 15 | OSDefineMetaClassAndStructors(WirtualJoy, super) 16 | 17 | bool WirtualJoy::start(IOService *provider) 18 | { 19 | if(!super::start(provider)) 20 | return false; 21 | 22 | registerService(); 23 | dmsg("started"); 24 | return true; 25 | } 26 | 27 | bool WirtualJoy::handleOpen( 28 | IOService *forClient, 29 | IOOptionBits options, 30 | void *arg) 31 | { 32 | dmsg("handleOpen"); 33 | return (!isOpen(forClient)); 34 | } 35 | -------------------------------------------------------------------------------- /WirtualJoy/wirtual_joy_debug.h: -------------------------------------------------------------------------------- 1 | /* 2 | * wirtual_joy_debug.h 3 | * wjoy 4 | * 5 | * Created by alxn1 on 12.07.12. 6 | * Copyright 2011 alxn1. All rights reserved. 7 | * 8 | */ 9 | 10 | #ifndef WIRTUAL_JOY_DEBUG_H 11 | #define WIRTUAL_JOY_DEBUG_H 12 | 13 | #include 14 | 15 | #ifdef DEBUG 16 | 17 | #define dmsg(message) \ 18 | printf("%s - %s (%d): %s\n", \ 19 | __FILE__, __PRETTY_FUNCTION__, __LINE__, message) 20 | 21 | #define dmsgf(format, params ...) \ 22 | printf("%s - %s (%d): " format "\n", \ 23 | __FILE__, __PRETTY_FUNCTION__, __LINE__, params) 24 | 25 | #else /* DEBUG */ 26 | 27 | #define dmsg(message) 28 | #define dmsgf(format, params ...) 29 | 30 | #endif /* DEBUG */ 31 | 32 | #endif /* WIRTUAL_JOY_DEBUG_H */ 33 | -------------------------------------------------------------------------------- /Wiimote/WiimoteDeviceReadMemQueue.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteDeviceReadMemQueue.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 02.08.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class WiimoteDevice; 12 | @class WiimoteDeviceReport; 13 | @class WiimoteDeviceReadMemHandler; 14 | 15 | @interface WiimoteDeviceReadMemQueue : NSObject 16 | { 17 | @private 18 | WiimoteDevice *m_Device; 19 | NSMutableArray *m_ReadMemHandlersQueue; 20 | WiimoteDeviceReadMemHandler *m_CurrentMemHandler; 21 | } 22 | 23 | - (id)initWithDevice:(WiimoteDevice*)device; 24 | 25 | - (BOOL)readMemory:(NSRange)memoryRange 26 | target:(id)target 27 | action:(SEL)action; 28 | 29 | - (void)handleReport:(WiimoteDeviceReport*)report; 30 | 31 | - (void)handleDisconnect; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIOManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIOManager.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | @class WiimoteDevice; 13 | 14 | @interface WiimoteIOManager : NSObject 15 | { 16 | @private 17 | Wiimote *m_Owner; 18 | WiimoteDevice *m_Device; 19 | } 20 | 21 | - (BOOL)postCommand:(WiimoteDeviceCommandType)command 22 | data:(const uint8_t*)data 23 | length:(NSUInteger)length; 24 | 25 | - (BOOL)writeMemory:(NSUInteger)address 26 | data:(const uint8_t*)data 27 | length:(NSUInteger)length; 28 | 29 | - (BOOL)readMemory:(NSRange)memoryRange 30 | target:(id)target 31 | action:(SEL)action; 32 | 33 | - (Wiimote*)owner; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolMotionPlus.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolMotionPlus.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 12.09.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceMotionPlusExtensionProbeAddress 0x04A600FA 10 | 11 | #define WiimoteDeviceMotionPlusExtensionInitAddress 0x04A600F0 12 | #define WiimoteDeviceMotionPlusExtensionResetAddress 0x04A400F0 13 | #define WiimoteDeviceMotionPlusExtensionInitOrResetValue 0x55 14 | 15 | #define WiimoteDeviceMotionPlusExtensionSetModeAddress 0x04A600FE 16 | 17 | typedef enum { 18 | WiimoteDeviceMotionPlusModeNormal = 0x04, 19 | WiimoteDeviceMotionPlusModeNunchuck = 0x05, 20 | WiimoteDeviceMotionPlusModeOther = 0x07 21 | } WiimoteDeviceMotionPlusMode; 22 | -------------------------------------------------------------------------------- /Wiimote/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 4.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Wiimote/Wiimote+Tracking.m: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+Tracking.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Wiimote+Tracking.h" 10 | 11 | @implementation Wiimote (Tracking) 12 | 13 | + (NSMutableArray*)mutableConnectedWiimotes 14 | { 15 | static NSMutableArray *result = nil; 16 | 17 | if(result == nil) 18 | result = [[NSMutableArray alloc] init]; 19 | 20 | return result; 21 | } 22 | 23 | + (NSArray*)connectedWiimotes 24 | { 25 | return [self mutableConnectedWiimotes]; 26 | } 27 | 28 | + (void)wiimoteConnected:(Wiimote*)wiimote 29 | { 30 | [[self mutableConnectedWiimotes] addObject:wiimote]; 31 | } 32 | 33 | + (void)wiimoteDisconnected:(Wiimote*)wiimote 34 | { 35 | [[self mutableConnectedWiimotes] removeObject:wiimote]; 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Wiimote/WiimoteExtensionPart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtensionPart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | 11 | @class WiimoteExtension; 12 | @class WiimoteExtensionHelper; 13 | @class WiimoteMotionPlusDetector; 14 | 15 | @interface WiimoteExtensionPart : WiimotePart 16 | { 17 | @private 18 | BOOL m_IsExtensionConnected; 19 | WiimoteExtensionHelper *m_ProbeHelper; 20 | WiimoteMotionPlusDetector *m_MotionPlusDetector; 21 | WiimoteExtension *m_Extension; 22 | } 23 | 24 | + (void)registerExtensionClass:(Class)cls; 25 | 26 | - (WiimoteExtension*)connectedExtension; 27 | 28 | - (void)detectMotionPlus; 29 | - (void)reconnectExtension; 30 | - (void)disconnectExtension; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocolNunchuck.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolNunchuck.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 06.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | typedef enum 10 | { 11 | WiimoteDeviceNunchuckReportButtonMaskC = 0x2, 12 | WiimoteDeviceNunchuckReportButtonMaskZ = 0x1 13 | } WiimoteDeviceNunchuckReportButtonMask; 14 | 15 | typedef struct 16 | { 17 | uint8_t stickX; 18 | uint8_t stickY; 19 | uint8_t accelerometerX; 20 | uint8_t accelerometerY; 21 | uint8_t accelerometerZ; 22 | uint8_t acceleromererXYZAndButtonState; 23 | } WiimoteDeviceNunchuckReport; 24 | 25 | typedef struct 26 | { 27 | WiimoteDeviceAccelerometerCalibrationData accelerometer; 28 | WiimoteDeviceStickCalibrationData stick; 29 | } WiimoteDeviceNunchuckCalibrationData; 30 | -------------------------------------------------------------------------------- /VHID/VHID.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Test.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | VHID.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A18416415BE8D7C00F223E4 21 | 22 | primary 23 | 24 | 25 | 8DC2EF4F0486A6940098B216 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDDevice.m: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDDevice.m 3 | // VHID 4 | // 5 | // Created by alxn1 on 17.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import "VHIDDevice+Private.h" 10 | 11 | @implementation VHIDDevice 12 | 13 | - (void)dealloc 14 | { 15 | [m_Descriptor release]; 16 | [m_State release]; 17 | [super dealloc]; 18 | } 19 | 20 | - (NSData*)descriptor 21 | { 22 | return [[m_Descriptor retain] autorelease]; 23 | } 24 | 25 | - (NSData*)state 26 | { 27 | return [[m_State retain] autorelease]; 28 | } 29 | 30 | - (void)reset 31 | { 32 | [self resetState]; 33 | [self notifyAboutStateChanged]; 34 | } 35 | 36 | - (id)delegate 37 | { 38 | return m_Delegate; 39 | } 40 | 41 | - (void)setDelegate:(id)delegate 42 | { 43 | m_Delegate = delegate; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /OCLog/OCLog.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | OCLog.xcscheme 8 | 9 | orderHint 10 | 9 11 | 12 | test.xcscheme 13 | 14 | orderHint 15 | 10 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A0CA1E318B6108800F5462E 21 | 22 | primary 23 | 24 | 25 | 8DC2EF4F0486A6940098B216 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WJoy/WJoy.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Build DMG.xcscheme 8 | 9 | orderHint 10 | 1 11 | 12 | WJoy.xcscheme 13 | 14 | orderHint 15 | 0 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A161401172979E300F0D5B2 21 | 22 | primary 23 | 24 | 25 | 8D1107260486CEB800E47090 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULA.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | DMGEULA.xcscheme 8 | 9 | orderHint 10 | 14 11 | 12 | dmgeula.xcscheme 13 | 14 | orderHint 15 | 13 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A1613201729766E00F0D5B2 21 | 22 | primary 23 | 24 | 25 | 8DD76F620486A84900D96B5E 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /WJoy/fix_dmg.applescript: -------------------------------------------------------------------------------- 1 | #!/usr/bin/osascript 2 | 3 | tell application "Finder" 4 | tell disk "WJoy" 5 | open 6 | tell container window 7 | set current view to icon view 8 | set toolbar visible to false 9 | set statusbar visible to false 10 | set the bounds to {120, 141, 612, 554} 11 | end tell 12 | set opts to icon view options of container window 13 | tell opts 14 | set arrangement to not arranged 15 | set shows item info to false 16 | set icon size to 128 17 | set text size to 12 18 | end tell 19 | set background picture of opts to file ".images:background.png" 20 | set extension hidden of item "WJoy.app" to true 21 | set position of item "WJoy.app" to {56 + 64, 231 + 64} 22 | set position of item "Applications" to {310 + 64, 231 + 64} 23 | close 24 | open 25 | update without registering applications 26 | end tell 27 | delay 5 28 | end tell 29 | -------------------------------------------------------------------------------- /Wiimote/HIDManager+Private.m: -------------------------------------------------------------------------------- 1 | // 2 | // HIDManager+Private.m 3 | // HID 4 | // 5 | // Created by alxn1 on 30.06.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import "HIDManager+Private.h" 10 | 11 | @implementation HIDManager (Private) 12 | 13 | - (void)HIDDeviceDisconnected:(HIDDevice*)device 14 | { 15 | [[device retain] autorelease]; 16 | 17 | [m_ConnectedDevices removeObject:device]; 18 | 19 | [[NSNotificationCenter defaultCenter] 20 | postNotificationName:HIDManagerDeviceDisconnectedNotification 21 | object:self 22 | userInfo:[NSDictionary 23 | dictionaryWithObject:device 24 | forKey:HIDManagerDeviceKey]]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /Wiimote/WiimoteBalanceBoard.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteBalanceBoard.h 3 | // WiimoteBalanceBoard 4 | // 5 | // Created by alxn1 on 10.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteGenericExtension.h" 10 | #import "WiimoteEventDispatcher+BalanceBoard.h" 11 | 12 | @interface WiimoteBalanceBoard : WiimoteGenericExtension< 13 | WiimoteBalanceBoardProtocol> 14 | { 15 | @private 16 | BOOL m_IsCalibrationDataReaded; 17 | 18 | double m_TopLeftPress; 19 | double m_TopRightPress; 20 | double m_BottomLeftPress; 21 | double m_BottomRightPress; 22 | 23 | WiimoteBalanceBoardCalibrationData m_CalibrationData; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteIOManager.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIOManager.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | @class WiimoteDevice; 13 | 14 | @interface WiimoteIOManager : NSObject 15 | { 16 | @private 17 | Wiimote *m_Owner; 18 | WiimoteDevice *m_Device; 19 | } 20 | 21 | - (BOOL)postCommand:(WiimoteDeviceCommandType)command 22 | data:(const uint8_t*)data 23 | length:(NSUInteger)length; 24 | 25 | - (BOOL)writeMemory:(NSUInteger)address 26 | data:(const uint8_t*)data 27 | length:(NSUInteger)length; 28 | 29 | - (BOOL)readMemory:(NSRange)memoryRange 30 | target:(id)target 31 | action:(SEL)action; 32 | 33 | - (Wiimote*)owner; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /UserNotification/Growl.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | SwzGt9RQsuVafBBrfBalB75dCwU= 10 | 11 | 12 | rules 13 | 14 | ^Resources/ 15 | 16 | ^Resources/.*\.lproj/ 17 | 18 | optional 19 | 20 | weight 21 | 1000 22 | 23 | ^Resources/.*\.lproj/locversion.plist$ 24 | 25 | omit 26 | 27 | weight 28 | 1100 29 | 30 | ^version.plist$ 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /WJoy/WJoy.xcodeproj/project.xcworkspace/xcuserdata/justin.xcuserdatad/xcdebugger/Expressions.xcexplist: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 7 | 8 | 10 | 11 | 13 | 14 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocolMotionPlus.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocolMotionPlus.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 12.09.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #define WiimoteDeviceMotionPlusExtensionProbeAddress 0x04A600FA 10 | 11 | #define WiimoteDeviceMotionPlusExtensionInitAddress 0x04A600F0 12 | #define WiimoteDeviceMotionPlusExtensionResetAddress 0x04A400F0 13 | #define WiimoteDeviceMotionPlusExtensionInitOrResetValue 0x55 14 | 15 | #define WiimoteDeviceMotionPlusExtensionSetModeAddress 0x04A600FE 16 | 17 | typedef enum { 18 | WiimoteDeviceMotionPlusModeNormal = 0x04, 19 | WiimoteDeviceMotionPlusModeNunchuck = 0x05, 20 | WiimoteDeviceMotionPlusModeOther = 0x07 21 | } WiimoteDeviceMotionPlusMode; 22 | -------------------------------------------------------------------------------- /UpdateChecker/UpdateChecker.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | UpdateChecker.xcscheme 8 | 9 | orderHint 10 | 2 11 | 12 | UpdateTest.xcscheme 13 | 14 | orderHint 15 | 3 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A1F6349162EC33D004FB111 21 | 22 | primary 23 | 24 | 25 | 8DC2EF4F0486A6940098B216 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /LocalizationUtils/XibObjectInspector.h: -------------------------------------------------------------------------------- 1 | // 2 | // XibObjectInspector.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XibObjectInspector : NSObject 12 | { 13 | @private 14 | id m_XibObject; 15 | } 16 | 17 | // Проходит по всем plugin-ам, и проверяет на соответствие класс обьекта 18 | // поддерживаемым классам того или иного плагина. Если такого класса нет - 19 | // начинает искать плагиы для супер-класса, и так далее. 20 | // В случае, если нет точного соответствия (или вообще его нет), 21 | // может писать об этом в консоль, при наличие макроса XIB_LOCALIZATION_DEBUG. 22 | 23 | + (void)extractXibObject:(id)xibObject 24 | properties:(NSMutableArray*)properties 25 | children:(NSMutableArray*)children; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /UserNotification/UserNotification.xcodeproj/xcuserdata/justin.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Test.xcscheme 8 | 9 | orderHint 10 | 12 11 | 12 | UserNotification.xcscheme 13 | 14 | orderHint 15 | 11 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 0A23C17915BD64EE009CB4C4 21 | 22 | primary 23 | 24 | 25 | 8DC2EF4F0486A6940098B216 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /OCLog/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | 26 | 27 | -------------------------------------------------------------------------------- /VHID/VHIDPointerCollection.h: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDPointerCollection.h 3 | // VHID 4 | // 5 | // Created by alxn1 on 23.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface VHIDPointerCollection : NSObject 12 | { 13 | @private 14 | NSUInteger m_PointerCount; 15 | BOOL m_IsRelative; 16 | NSData *m_Descriptor; 17 | NSMutableData *m_State; 18 | } 19 | 20 | + (NSUInteger)maxPointerCount; 21 | 22 | - (id)initWithPointerCount:(NSUInteger)pointerCount isRelative:(BOOL)isRelative; 23 | 24 | - (BOOL)isRelative; 25 | - (NSUInteger)pointerCount; 26 | 27 | // [-1, +1] ;) 28 | - (NSPoint)pointerPosition:(NSUInteger)pointerIndex; 29 | - (void)setPointer:(NSUInteger)pointerIndex position:(NSPoint)position; 30 | - (void)reset; 31 | 32 | - (NSData*)descriptor; 33 | - (NSData*)state; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /WJoy/WiimoteAutoWrapper.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAutoWrapper.h 3 | // WJoy 4 | // 5 | // Created by alxn1 on 27.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface WiimoteAutoWrapper : NSObject< 14 | VHIDDeviceDelegate> 15 | 16 | { 17 | @private 18 | Wiimote *m_Device; 19 | VHIDDevice *m_HIDState; 20 | NSPoint m_ShiftsState; 21 | WJoyDevice *m_WJoy; 22 | // For calibration of the analog sticks 23 | NSPoint minL, maxL, minR, maxR; 24 | } 25 | 26 | // 0 = infinite, default = infinite, if currently connected too many, disconnect last connected 27 | + (NSUInteger)maxConnectedDevices; 28 | + (void)setMaxConnectedDevices:(NSUInteger)count; 29 | 30 | + (void)start; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | 26 | 27 | -------------------------------------------------------------------------------- /LocalizationUtils/XibObjectProperty.h: -------------------------------------------------------------------------------- 1 | // 2 | // XibObjectProperty.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XibObjectProperty : NSObject 12 | { 13 | @private 14 | id m_Owner; 15 | SEL m_GetMethod; 16 | SEL m_SetMethod; 17 | } 18 | 19 | + (BOOL)addTo:(NSMutableArray*)propertyArray 20 | owner:(id)owner 21 | getMethod:(SEL)getMethod 22 | setMethod:(SEL)setMethod; 23 | 24 | + (XibObjectProperty*)propertyWithOwner:(id)owner 25 | getMethod:(SEL)getMethod 26 | setMethod:(SEL)setMethod; 27 | 28 | - (id)initWithOwner:(id)owner 29 | getMethod:(SEL)getMethod 30 | setMethod:(SEL)setMethod; 31 | 32 | - (NSString*)value; 33 | - (void)setValue:(NSString*)value; 34 | 35 | - (id)owner; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Wiimote/WiimoteExtensionProbeHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtensionProbeHandler.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteExtensionProbeHandler : NSObject 12 | { 13 | @private 14 | id m_Target; 15 | SEL m_Action; 16 | } 17 | 18 | + (void)routineProbe:(WiimoteIOManager*)manager 19 | signature:(NSData*)signature 20 | target:(id)target 21 | action:(SEL)action; 22 | 23 | + (void)routineProbe:(WiimoteIOManager*)manager 24 | signatures:(NSArray*)signatures 25 | target:(id)target 26 | action:(SEL)action; 27 | 28 | - (id)initWithIOManager:(WiimoteIOManager*)manager 29 | target:(id)target 30 | action:(SEL)action; 31 | 32 | - (void)probeFinished:(BOOL)result; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /DMGEULA/DMGEULAResource.h: -------------------------------------------------------------------------------- 1 | // 2 | // DMGEULAResource.h 3 | // DMGEULA 4 | // 5 | // Created by alxn1 on 24.04.13. 6 | // Copyright 2013 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DMGEULAResource : NSObject 12 | { 13 | @private 14 | NSMutableArray *m_Languages; 15 | NSMutableArray *m_LicenseFilePaths; 16 | DMGEULALanguage *m_DefaultLanguage; 17 | } 18 | 19 | - (NSArray*)languages; 20 | - (NSString*)licenseFilePathForLanguage:(DMGEULALanguage*)language; 21 | - (BOOL)containsLanguage:(DMGEULALanguage*)language; 22 | - (void)addLanguage:(DMGEULALanguage*)language licenseFilePath:(NSString*)licenseFilePath; 23 | - (void)removeLanguage:(DMGEULALanguage*)language; 24 | - (void)removeAllLanguages; 25 | 26 | - (DMGEULALanguage*)defaultLanguage; 27 | - (void)setDefaultLanguage:(DMGEULALanguage*)language; 28 | 29 | - (NSString*)makeExternalForm:(NSError**)error; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Wiimote/TestController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 09.10.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | @interface TestController : NSObject< OCLogHandler > 14 | { 15 | @private 16 | IBOutlet NSTextView *m_Log; 17 | IBOutlet NSButton *m_DiscoveryButton; 18 | IBOutlet NSTextField *m_ConnectedTextField; 19 | IBOutlet NSButton *m_DebugCheckBox; 20 | 21 | NSUInteger m_ConnectedWiimotes; 22 | BOOL m_IsDiscovering; 23 | } 24 | 25 | - (IBAction)toggleUseOneButtonClickConnection:(id)sender; 26 | - (IBAction)toggleDebugOutput:(id)sender; 27 | - (IBAction)discovery:(id)sender; 28 | - (IBAction)clearLog:(id)sender; 29 | - (IBAction)detectMotionPlus:(id)sender; 30 | - (IBAction)toggleVibration:(id)sender; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /experimental/VHID2/VHIDDevice+Private.m: -------------------------------------------------------------------------------- 1 | // 2 | // VHIDDevice+Private.m 3 | // VHID 4 | // 5 | // Created by alxn1 on 17.03.14. 6 | // Copyright (c) 2014 alxn1. All rights reserved. 7 | // 8 | 9 | #import "VHIDDevice+Private.h" 10 | 11 | @implementation VHIDDevice (Private) 12 | 13 | - (id)initWithDescriptor:(NSData*)descriptor stateSize:(NSUInteger)stateSize 14 | { 15 | self = [super init]; 16 | if(self == nil) 17 | return nil; 18 | 19 | m_Descriptor = [descriptor copy]; 20 | m_State = [[NSMutableData alloc] initWithLength:stateSize]; 21 | 22 | return self; 23 | } 24 | 25 | - (unsigned char*)mutableStateBytes 26 | { 27 | return ((unsigned char*)[m_State mutableBytes]); 28 | } 29 | 30 | - (void)resetState 31 | { 32 | memset([m_State mutableBytes], 0, [m_State length]); 33 | } 34 | 35 | - (void)notifyAboutStateChanged 36 | { 37 | [m_Delegate VHIDDevice:self stateChanted:m_State]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocolCalibration.h: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // WiimoteProtocolCalibration.h 4 | // Wiimote 5 | // 6 | // Created by alxn1 on 06.08.12. 7 | // Copyright 2012 alxn1. All rights reserved. 8 | // 9 | 10 | #define WiimoteDeviceCalibrationDataAddress 0x0020 11 | 12 | typedef struct 13 | { 14 | uint8_t x; 15 | uint8_t y; 16 | uint8_t z; 17 | uint8_t additionalXYZ; 18 | } WiimoteDeviceAccelerometerCalibrationValue; 19 | 20 | typedef struct 21 | { 22 | WiimoteDeviceAccelerometerCalibrationValue zero; 23 | WiimoteDeviceAccelerometerCalibrationValue oneG; 24 | } WiimoteDeviceAccelerometerCalibrationData; 25 | 26 | typedef struct 27 | { 28 | uint8_t max; 29 | uint8_t min; 30 | uint8_t center; 31 | } WiimoteDeviceStickCoordinateCalibrationData; 32 | 33 | typedef struct 34 | { 35 | WiimoteDeviceStickCoordinateCalibrationData x; 36 | WiimoteDeviceStickCoordinateCalibrationData y; 37 | } WiimoteDeviceStickCalibrationData; 38 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocol.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // WARNING!!! Wiimote use big-endian data format!!! 12 | 13 | // This file contain all hardware-specific type definitions for Wii Remote. 14 | 15 | #pragma pack(push, 1) 16 | 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | #import 23 | #import 24 | #import 25 | #import 26 | #import 27 | 28 | #pragma pack(pop) 29 | -------------------------------------------------------------------------------- /VHID/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /ObjCDebug/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /LocalizationUtils/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /UpdateChecker/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /UserNotification/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034Identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /Wiimote/WiimoteVibrationPart.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteVibrationPart.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteVibrationPart.h" 10 | #import "WiimoteEventDispatcher+Vibration.h" 11 | #import "WiimoteLEDPart.h" 12 | #import "WiimoteDevice.h" 13 | 14 | @implementation WiimoteVibrationPart 15 | 16 | + (void)load 17 | { 18 | [WiimotePart registerPartClass:[WiimoteVibrationPart class]]; 19 | } 20 | 21 | - (BOOL)isVibrationEnabled 22 | { 23 | return [m_Device isVibrationEnabled]; 24 | } 25 | 26 | - (void)setVibrationEnabled:(BOOL)enabled 27 | { 28 | if([self isVibrationEnabled] == enabled) 29 | return; 30 | 31 | if(![m_Device setVibrationEnabled:enabled]) 32 | return; 33 | 34 | [[self eventDispatcher] postVibrationStateChangedNotification:enabled]; 35 | } 36 | 37 | - (void)setDevice:(WiimoteDevice*)device 38 | { 39 | m_Device = device; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /fun/ice/Math3D.h: -------------------------------------------------------------------------------- 1 | // 2 | // Math3D.h 3 | // ice 4 | // 5 | // Created by alxn1 on 26.09.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | typedef struct 12 | { 13 | float x; 14 | float y; 15 | float z; 16 | 17 | float u; 18 | float v; 19 | } Vertex; 20 | 21 | typedef struct 22 | { 23 | float a11, a21, a31, a41; 24 | float a12, a22, a32, a42; 25 | float a13, a23, a33, a43; 26 | float a14, a24, a34, a44; 27 | } Matrix; 28 | 29 | Matrix IdentityMatrix(void); 30 | 31 | Matrix RotateXMatrix(float angle); 32 | Matrix RotateYMatrix(float angle); 33 | Matrix RotateZMatrix(float angle); 34 | 35 | Matrix ScaleMatrix(float sx, float sy, float sz); 36 | Matrix TranslateMatrix(float dx, float dy, float dz); 37 | 38 | Matrix MultMatrixes(Matrix m1, Matrix m2); 39 | 40 | Vertex TransformVertex(Vertex vertex, Matrix matrix); 41 | 42 | void TransformVertexes(Vertex *vertexes, int count, Matrix matrix); 43 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteExtensionProbeHandler.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteExtensionProbeHandler.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteExtensionProbeHandler : NSObject 12 | { 13 | @private 14 | id m_Target; 15 | SEL m_Action; 16 | } 17 | 18 | + (void)routineProbe:(WiimoteIOManager*)manager 19 | signature:(NSData*)signature 20 | target:(id)target 21 | action:(SEL)action; 22 | 23 | + (void)routineProbe:(WiimoteIOManager*)manager 24 | signatures:(NSArray*)signatures 25 | target:(id)target 26 | action:(SEL)action; 27 | 28 | - (id)initWithIOManager:(WiimoteIOManager*)manager 29 | target:(id)target 30 | action:(SEL)action; 31 | 32 | - (void)probeFinished:(BOOL)result; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteProtocolCalibration.h: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // WiimoteProtocolCalibration.h 4 | // Wiimote 5 | // 6 | // Created by alxn1 on 06.08.12. 7 | // Copyright 2012 alxn1. All rights reserved. 8 | // 9 | 10 | #define WiimoteDeviceCalibrationDataAddress 0x0020 11 | 12 | typedef struct 13 | { 14 | uint8_t x; 15 | uint8_t y; 16 | uint8_t z; 17 | uint8_t additionalXYZ; 18 | } WiimoteDeviceAccelerometerCalibrationValue; 19 | 20 | typedef struct 21 | { 22 | WiimoteDeviceAccelerometerCalibrationValue zero; 23 | WiimoteDeviceAccelerometerCalibrationValue oneG; 24 | } WiimoteDeviceAccelerometerCalibrationData; 25 | 26 | typedef struct 27 | { 28 | uint8_t max; 29 | uint8_t min; 30 | uint8_t center; 31 | } WiimoteDeviceStickCoordinateCalibrationData; 32 | 33 | typedef struct 34 | { 35 | WiimoteDeviceStickCoordinateCalibrationData x; 36 | WiimoteDeviceStickCoordinateCalibrationData y; 37 | } WiimoteDeviceStickCalibrationData; 38 | -------------------------------------------------------------------------------- /fun/ice/IceParticle.h: -------------------------------------------------------------------------------- 1 | // 2 | // IceParticle.h 3 | // ice 4 | // 5 | // Created by alxn1 on 28.12.11. 6 | // Copyright 2011 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Texture.h" 10 | 11 | @interface IceParticle : NSObject 12 | { 13 | @private 14 | NSRect m_ContentRect; 15 | NSPoint m_Position; 16 | NSSize m_Size; 17 | float m_Scale; 18 | float m_Angle; 19 | float m_Speed; 20 | float m_RotateSpeed; 21 | Texture *m_Texture; 22 | unsigned long long m_TimeOffset; 23 | unsigned long long m_FrameIndex; 24 | } 25 | 26 | - (id)initWithTexture:(Texture*)texture 27 | contentRect:(NSRect)contentRect; 28 | 29 | - (Texture*)texture; 30 | 31 | - (void)nextFrame:(unsigned long long)frameIndex; 32 | - (void)draw:(float)alpha moutionBlur:(BOOL)moutionBlur; 33 | 34 | - (BOOL)isDied; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /Wiimote/WiimoteClassicController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteClassicController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteGenericExtension.h" 10 | #import "WiimoteEventDispatcher+ClassicController.h" 11 | 12 | @interface WiimoteClassicController : WiimoteGenericExtension< 13 | WiimoteClassicControllerProtocol> 14 | { 15 | @private 16 | BOOL m_ButtonState[WiimoteClassicControllerButtonCount]; 17 | NSPoint m_StickPositions[WiimoteClassicControllerStickCount]; 18 | CGFloat m_AnalogShiftPositions[WiimoteClassicControllerAnalogShiftCount]; 19 | BOOL m_IsCalibrationDataReaded; 20 | WiimoteDeviceClassicControllerCalibrationData m_CalibrationData; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /OCLog/test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /VHID/Test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Wiimote/WiimotePart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimotePart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface WiimotePart : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | WiimoteEventDispatcher *m_EventDispatcher; 18 | WiimoteIOManager *m_IOManager; 19 | } 20 | 21 | + (void)registerPartClass:(Class)cls; 22 | 23 | - (id)initWithOwner:(Wiimote*)owner 24 | eventDispatcher:(WiimoteEventDispatcher*)dispatcher 25 | ioManager:(WiimoteIOManager*)ioManager; 26 | 27 | - (Wiimote*)owner; 28 | - (WiimoteIOManager*)ioManager; 29 | - (WiimoteEventDispatcher*)eventDispatcher; 30 | 31 | - (NSSet*)allowedReportTypeSet; 32 | 33 | - (void)connected; 34 | - (void)handleReport:(WiimoteDeviceReport*)report; 35 | - (void)disconnected; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Wiimote/WiimoteProtocol.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteProtocol.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 29.07.12. 6 | // Copyright (c) 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | // WARNING!!! Wiimote use big-endian data format!!! 12 | 13 | // This file contain all hardware-specific type definitions for Wii Remote. 14 | 15 | #pragma pack(push, 1) 16 | 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | #import 23 | #import 24 | #import 25 | #import 26 | #import 27 | #import 28 | #import 29 | 30 | #pragma pack(pop) 31 | -------------------------------------------------------------------------------- /Wiimote/test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 3.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 3 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | test 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /ObjCDebug/test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Extension.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Extension.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+Extension.h" 10 | 11 | @implementation WiimoteEventDispatcher (Extension) 12 | 13 | - (void)postExtensionConnectedNotification:(WiimoteExtension*)extension 14 | { 15 | [[self delegate] wiimote:[self owner] extensionConnected:extension]; 16 | 17 | [self postNotification:WiimoteExtensionConnectedNotification 18 | param:extension 19 | key:WiimoteExtensionKey]; 20 | } 21 | 22 | - (void)postExtensionDisconnectedNotification:(WiimoteExtension*)extension 23 | { 24 | [[self delegate] wiimote:[self owner] extensionDisconnected:extension]; 25 | 26 | [self postNotification:WiimoteExtensionDisconnectedNotification 27 | param:extension 28 | key:WiimoteExtensionKey]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /WirtualJoy/Test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIOManager.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIOManager.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIOManager.h" 10 | 11 | #import "Wiimote.h" 12 | #import "WiimoteDevice.h" 13 | 14 | @implementation WiimoteIOManager 15 | 16 | - (BOOL)postCommand:(WiimoteDeviceCommandType)command 17 | data:(const uint8_t*)data 18 | length:(NSUInteger)length 19 | { 20 | return [m_Device postCommand:command data:data length:length]; 21 | } 22 | 23 | - (BOOL)writeMemory:(NSUInteger)address 24 | data:(const uint8_t*)data 25 | length:(NSUInteger)length 26 | { 27 | return [m_Device writeMemory:address data:data length:length]; 28 | } 29 | 30 | - (BOOL)readMemory:(NSRange)memoryRange 31 | target:(id)target 32 | action:(SEL)action 33 | { 34 | return [m_Device readMemory:memoryRange target:target action:action]; 35 | } 36 | 37 | - (Wiimote*)owner 38 | { 39 | return m_Owner; 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /UserNotification/Test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Nunchuck.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Nunchuck.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteNunchuckDelegate.h" 11 | 12 | @interface WiimoteEventDispatcher (Nunchuck) 13 | 14 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck buttonPressed:(WiimoteNunchuckButtonType)button; 15 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck buttonReleased:(WiimoteNunchuckButtonType)button; 16 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck stickPositionChanged:(NSPoint)position; 17 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck accelerometerEnabledStateChanged:(BOOL)enabled; 18 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck accelerometerChangedGravityX:(CGFloat)x y:(CGFloat)y z:(CGFloat)z; 19 | - (void)postNunchuck:(WiimoteNunchuckExtension*)nunchuck accelerometerChangedPitch:(CGFloat)pitch roll:(CGFloat)roll; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/test-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /experimental/VHID2/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.alxn1.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSHumanReadableCopyright 24 | Copyright © 2014 Alxn1. All rights reserved. 25 | NSPrincipalClass 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimotePart.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimotePart.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | 13 | @interface WiimotePart : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | WiimoteEventDispatcher *m_EventDispatcher; 18 | WiimoteIOManager *m_IOManager; 19 | } 20 | 21 | + (void)registerPartClass:(Class)cls; 22 | 23 | - (id)initWithOwner:(Wiimote*)owner 24 | eventDispatcher:(WiimoteEventDispatcher*)dispatcher 25 | ioManager:(WiimoteIOManager*)ioManager; 26 | 27 | - (Wiimote*)owner; 28 | - (WiimoteIOManager*)ioManager; 29 | - (WiimoteEventDispatcher*)eventDispatcher; 30 | 31 | - (NSSet*)allowedReportTypeSet; 32 | 33 | - (void)connected; 34 | - (void)handleReport:(WiimoteDeviceReport*)report; 35 | - (void)disconnected; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /WJoy/UserActivityNotifier.m: -------------------------------------------------------------------------------- 1 | // 2 | // UserActivityNotifier.m 3 | // WJoy 4 | // 5 | // Created by alxn1 on 26.02.14. 6 | // 7 | // 8 | 9 | #import "UserActivityNotifier.h" 10 | 11 | @implementation UserActivityNotifier 12 | 13 | + (UserActivityNotifier*)sharedNotifier 14 | { 15 | static UserActivityNotifier *result = nil; 16 | 17 | if(result == nil) 18 | result = [[UserActivityNotifier alloc] init]; 19 | 20 | return result; 21 | } 22 | 23 | - (id)init 24 | { 25 | self = [super init]; 26 | if(self == nil) 27 | return nil; 28 | 29 | m_LastNotifyTime = [[NSDate alloc] init]; 30 | return self; 31 | } 32 | 33 | - (void)dealloc 34 | { 35 | [m_LastNotifyTime release]; 36 | [super dealloc]; 37 | } 38 | 39 | - (void)notify 40 | { 41 | NSDate *now = [NSDate date]; 42 | 43 | if([now timeIntervalSinceDate:m_LastNotifyTime] >= 5.0) 44 | { 45 | UpdateSystemActivity(UsrActivity); 46 | 47 | [m_LastNotifyTime release]; 48 | m_LastNotifyTime = [now retain]; 49 | } 50 | } 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/WiimoteAudioSource.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAudioSource.m 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteAudioSourceWrapper.h" 10 | 11 | @implementation WiimoteAudioSource 12 | 13 | + (WiimoteAudioSource*)sourceFromFile:(NSString*)filePath 14 | { 15 | return [self sourceFromAVAudioSource:[AVAudioSource sourceFromFile:filePath]]; 16 | } 17 | 18 | + (WiimoteAudioSource*)sourceFromAVAudioSource:(AVAudioSource*)source 19 | { 20 | return [WiimoteAudioSourceWrapper wrap:source]; 21 | } 22 | 23 | - (NSData*)nextAudioPacket 24 | { 25 | return nil; 26 | } 27 | 28 | - (NSData*)getAllAudioData 29 | { 30 | NSMutableData *result = [NSMutableData data]; 31 | NSData *data; 32 | 33 | while(YES) 34 | { 35 | data = [self nextAudioPacket]; 36 | 37 | if(data == nil) 38 | break; 39 | 40 | [result appendData:data]; 41 | } 42 | 43 | return result; 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Wiimote/WiimoteGenericExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteGenericExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteGenericExtension : WiimoteExtension 12 | { 13 | } 14 | 15 | + (NSData*)extensionSignature; 16 | + (NSArray*)extensionSignatures; 17 | 18 | + (NSRange)calibrationDataMemoryRange; 19 | 20 | + (WiimoteExtensionMeritClass)meritClass; 21 | + (NSUInteger)minReportDataSize; 22 | 23 | - (id)initWithOwner:(Wiimote*)owner 24 | eventDispatcher:(WiimoteEventDispatcher*)dispatcher; 25 | 26 | - (BOOL)isSupportMotionPlus; 27 | - (WiimoteDeviceMotionPlusMode)motionPlusMode; 28 | 29 | - (void)handleCalibrationData:(const uint8_t*)data length:(NSUInteger)length; 30 | - (void)handleReport:(const uint8_t*)extensionData length:(NSUInteger)length; 31 | 32 | - (void)handleMotionPlusReport:(const uint8_t*)extensionData 33 | length:(NSUInteger)length; 34 | 35 | - (void)disconnected; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /UserNotification/UserNotification.h: -------------------------------------------------------------------------------- 1 | // 2 | // UserNotification.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UserNotification : NSObject 12 | { 13 | @private 14 | NSString *m_Title; 15 | NSString *m_Text; 16 | NSDictionary *m_UserInfo; 17 | } 18 | 19 | + (UserNotification*)userNotificationWithTitle:(NSString*)title text:(NSString*)text; 20 | + (UserNotification*)userNotificationWithTitle:(NSString*)title text:(NSString*)text userInfo:(NSDictionary*)userInfo; 21 | 22 | - (id)initWithTitle:(NSString*)title text:(NSString*)text userInfo:(NSDictionary*)userInfo; 23 | - (id)initWithDictionary:(NSDictionary*)dictionary; 24 | - (id)initWithCoder:(NSCoder*)decoder; 25 | - (void)dealloc; 26 | 27 | - (NSString*)title; 28 | - (NSString*)text; 29 | - (NSDictionary*)userInfo; 30 | 31 | - (void)encodeWithCoder:(NSCoder*)coder; 32 | - (NSDictionary*)asDictionary; 33 | - (NSString*)description; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Wiimote/WiimoteMotionPlusDetector.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteMotionPlusDetector.h 3 | // WMouse 4 | // 5 | // Created by alxn1 on 12.09.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface WiimoteMotionPlusDetector : NSObject 13 | { 14 | @private 15 | WiimoteIOManager *m_IOManager; 16 | 17 | id m_Target; 18 | SEL m_Action; 19 | 20 | BOOL m_IsRun; 21 | NSUInteger m_CancelCount; 22 | NSUInteger m_ReadTryCount; 23 | 24 | NSTimer *m_LastTryTimer; 25 | } 26 | 27 | + (void)activateMotionPlus:(WiimoteIOManager*)ioManager 28 | subExtension:(WiimoteExtension*)subExtension; 29 | 30 | - (id)initWithIOManager:(WiimoteIOManager*)ioManager 31 | target:(id)target 32 | action:(SEL)action; 33 | 34 | - (void)dealloc; 35 | 36 | - (BOOL)isRun; 37 | 38 | - (void)run; 39 | - (void)cancel; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | 13 | @interface WiimoteEventDispatcher : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | BOOL m_IsStateNotificationsEnabled; 18 | 19 | id m_Delegate; 20 | } 21 | 22 | - (Wiimote*)owner; 23 | 24 | - (BOOL)isStateNotificationsEnabled; 25 | 26 | - (void)postNotification:(NSString*)notification; 27 | - (void)postNotification:(NSString*)notification sender:(id)sender; 28 | - (void)postNotification:(NSString*)notification param:(id)param key:(NSString*)key; 29 | - (void)postNotification:(NSString*)notification param:(id)param key:(NSString*)key sender:(id)sender; 30 | - (void)postNotification:(NSString*)notification params:(NSDictionary*)params; 31 | - (void)postNotification:(NSString*)notification params:(NSDictionary*)params sender:(id)sender; 32 | 33 | - (id)delegate; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Wiimote/WiimoteIRPoint+Private.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteIRPoint+Private.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteIRPoint+Private.h" 10 | 11 | @implementation WiimoteIRPoint (Private) 12 | 13 | + (WiimoteIRPoint*)pointWithOwner:(Wiimote*)owner index:(NSUInteger)index 14 | { 15 | return [[[WiimoteIRPoint alloc] initWithOwner:owner index:index] autorelease]; 16 | } 17 | 18 | - (id)init 19 | { 20 | [[super init] release]; 21 | return nil; 22 | } 23 | 24 | - (id)initWithOwner:(Wiimote*)owner index:(NSUInteger)index 25 | { 26 | self = [super init]; 27 | if(self == nil) 28 | return nil; 29 | 30 | m_Owner = owner; 31 | m_Position = NSZeroPoint; 32 | m_IsOutOfView = YES; 33 | m_Index = index; 34 | 35 | return self; 36 | } 37 | 38 | - (void)setPosition:(NSPoint)position 39 | { 40 | m_Position = position; 41 | } 42 | 43 | - (void)setOutOfView:(BOOL)outOfView 44 | { 45 | m_IsOutOfView = outOfView; 46 | } 47 | 48 | @end 49 | -------------------------------------------------------------------------------- /VHID/TestView.m: -------------------------------------------------------------------------------- 1 | // 2 | // TestView.m 3 | // VHID 4 | // 5 | // Created by alxn1 on 24.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "TestView.h" 10 | 11 | @implementation TestView 12 | 13 | - (BOOL)acceptsFirstResponder 14 | { 15 | return YES; 16 | } 17 | 18 | - (BOOL)becomeFirstResponder 19 | { 20 | return YES; 21 | } 22 | 23 | - (BOOL)resignFirstResponder 24 | { 25 | return NO; 26 | } 27 | 28 | - (void)moveRight:(id)sender 29 | { 30 | [m_Delegate testView:self keyPressed:TestViewKeyRight]; 31 | } 32 | 33 | - (void)moveLeft:(id)sender 34 | { 35 | [m_Delegate testView:self keyPressed:TestViewKeyLeft]; 36 | } 37 | 38 | - (void)moveUp:(id)sender 39 | { 40 | [m_Delegate testView:self keyPressed:TestViewKeyUp]; 41 | } 42 | 43 | - (void)moveDown:(id)sender 44 | { 45 | [m_Delegate testView:self keyPressed:TestViewKeyDown]; 46 | } 47 | 48 | - (id)delegate 49 | { 50 | return m_Delegate; 51 | } 52 | 53 | - (void)setDelegate:(id)obj 54 | { 55 | m_Delegate = obj; 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+IR.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+IR.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+IR.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @implementation WiimoteEventDispatcher (IR) 13 | 14 | - (void)postIREnabledStateChangedNotification:(BOOL)enabled 15 | { 16 | [[self delegate] wiimote:[self owner] irEnabledStateChanged:enabled]; 17 | 18 | [self postNotification:WiimoteIREnabledStateChangedNotification 19 | param:[NSNumber numberWithBool:enabled] 20 | key:WiimoteIREnabledStateKey]; 21 | } 22 | 23 | - (void)postIRPointPositionChangedNotification:(WiimoteIRPoint*)point 24 | { 25 | [[self delegate] wiimote:[self owner] irPointPositionChanged:point]; 26 | 27 | if([self isStateNotificationsEnabled]) 28 | { 29 | [self postNotification:WiimoteIRPointPositionChangedNotification 30 | param:point 31 | key:WiimoteIRPointKey]; 32 | } 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteGenericExtension.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteGenericExtension.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteGenericExtension : WiimoteExtension 12 | { 13 | } 14 | 15 | + (NSData*)extensionSignature; 16 | + (NSArray*)extensionSignatures; 17 | 18 | + (NSRange)calibrationDataMemoryRange; 19 | 20 | + (WiimoteExtensionMeritClass)meritClass; 21 | + (NSUInteger)minReportDataSize; 22 | 23 | - (id)initWithOwner:(Wiimote*)owner 24 | eventDispatcher:(WiimoteEventDispatcher*)dispatcher; 25 | 26 | - (BOOL)isSupportMotionPlus; 27 | - (WiimoteDeviceMotionPlusMode)motionPlusMode; 28 | 29 | - (void)handleCalibrationData:(const uint8_t*)data length:(NSUInteger)length; 30 | - (void)handleReport:(const uint8_t*)extensionData length:(NSUInteger)length; 31 | 32 | - (void)handleMotionPlusReport:(const uint8_t*)extensionData 33 | length:(NSUInteger)length; 34 | 35 | - (void)disconnected; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Battery.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Battery.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+Battery.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @implementation WiimoteEventDispatcher (Battery) 13 | 14 | - (void)postBatteryLevelUpdateNotification:(CGFloat)batteryLevel isLow:(BOOL)isLow 15 | { 16 | [[self delegate] wiimote:[self owner] batteryLevelUpdated:batteryLevel isLow:isLow]; 17 | 18 | NSDictionary *params = [NSDictionary 19 | dictionaryWithObjectsAndKeys: 20 | [NSNumber numberWithDouble:batteryLevel], 21 | WiimoteBatteryLevelKey, 22 | [NSNumber numberWithBool:isLow], 23 | WiimoteIsBatteryLevelLowKey, 24 | nil]; 25 | 26 | [self postNotification:WiimoteBatteryLevelUpdatedNotification params:params]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /examples/WATest/Wiimote.framework/Versions/A/Headers/WiimoteEventDispatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class Wiimote; 12 | 13 | @interface WiimoteEventDispatcher : NSObject 14 | { 15 | @private 16 | Wiimote *m_Owner; 17 | BOOL m_IsStateNotificationsEnabled; 18 | 19 | id m_Delegate; 20 | } 21 | 22 | - (Wiimote*)owner; 23 | 24 | - (BOOL)isStateNotificationsEnabled; 25 | 26 | - (void)postNotification:(NSString*)notification; 27 | - (void)postNotification:(NSString*)notification sender:(id)sender; 28 | - (void)postNotification:(NSString*)notification param:(id)param key:(NSString*)key; 29 | - (void)postNotification:(NSString*)notification param:(id)param key:(NSString*)key sender:(id)sender; 30 | - (void)postNotification:(NSString*)notification params:(NSDictionary*)params; 31 | - (void)postNotification:(NSString*)notification params:(NSDictionary*)params sender:(id)sender; 32 | 33 | - (id)delegate; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /WirtualJoy/WJoyDevice.h: -------------------------------------------------------------------------------- 1 | // 2 | // WJoyDevice.h 3 | // driver 4 | // 5 | // Created by alxn1 on 17.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class WJoyDeviceImpl; 12 | 13 | FOUNDATION_EXTERN NSString *WJoyDeviceVendorIDKey; // NSNumber (NSUInteger as uint32_t) 14 | FOUNDATION_EXTERN NSString *WJoyDeviceProductIDKey; // NSNumber (NSUInteger as uint32_t) 15 | FOUNDATION_EXTERN NSString *WJoyDeviceProductStringKey; // NSString 16 | FOUNDATION_EXTERN NSString *WJoyDeviceSerialNumberStringKey; // NSString 17 | 18 | @interface WJoyDevice : NSObject 19 | { 20 | @private 21 | WJoyDeviceImpl *m_Impl; 22 | NSDictionary *m_Properties; 23 | } 24 | 25 | + (BOOL)prepare; 26 | 27 | - (id)initWithHIDDescriptor:(NSData*)HIDDescriptor; 28 | - (id)initWithHIDDescriptor:(NSData*)HIDDescriptor productString:(NSString*)productString; 29 | - (id)initWithHIDDescriptor:(NSData*)HIDDescriptor properties:(NSDictionary*)properties; 30 | 31 | - (NSDictionary*)properties; 32 | 33 | - (BOOL)updateHIDState:(NSData*)HIDState; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+ClassicController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+ClassicController.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 31.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher.h" 10 | #import "WiimoteClassicControllerDelegate.h" 11 | 12 | @interface WiimoteEventDispatcher (ClassicController) 13 | 14 | - (void)postClassicController:(WiimoteClassicControllerExtension*)classic 15 | buttonPressed:(WiimoteClassicControllerButtonType)button; 16 | 17 | - (void)postClassicController:(WiimoteClassicControllerExtension*)classic 18 | buttonReleased:(WiimoteClassicControllerButtonType)button; 19 | 20 | - (void)postClassicController:(WiimoteClassicControllerExtension*)classic 21 | stick:(WiimoteClassicControllerStickType)stick 22 | positionChanged:(NSPoint)position; 23 | 24 | - (void)postClassicController:(WiimoteClassicControllerExtension*)classic 25 | analogShift:(WiimoteClassicControllerAnalogShiftType)shift 26 | positionChanged:(CGFloat)position; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /LocalizationUtils/XibObjectInspector+PlugIn.h: -------------------------------------------------------------------------------- 1 | // 2 | // XibObjectInspector+PlugIn.h 3 | // XibLocalization 4 | // 5 | // Created by alxn1 on 03.12.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XibObjectInspector (PlugIn) 12 | 13 | // этот метод должен быть вызван из класса-наследника, 14 | // в методе + (void)load; Иначе плагин не будет зарегистрирован, 15 | // и не будет использоваться при локализации xib-ов. 16 | 17 | + (void)registerSubClass:(Class)cls; 18 | 19 | // утилиты, которые можно (и нужно) использовать в классах-наследниках. 20 | 21 | - (id)xibObject; 22 | 23 | - (BOOL)extractProperty:(NSMutableArray*)propertiesArray 24 | getMethod:(SEL)getMethod 25 | setMethod:(SEL)setMethod; 26 | 27 | - (BOOL)extractChildren:(NSMutableArray*)childrenArray method:(SEL)method; 28 | 29 | // методы, которые необходимо переопределить и реализовать. 30 | 31 | - (NSSet*)handledXibClassNames; 32 | - (void)extractProperties:(NSMutableArray*)propertiesArray; 33 | - (void)extractChildren:(NSMutableArray*)childrenArray; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /examples/WATest/WATest-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | ${MACOSX_DEPLOYMENT_TARGET} 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /UpdateChecker/UpdateTest-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | ${MACOSX_DEPLOYMENT_TARGET} 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | UALatesVersionPlistURL 28 | http://wjoy.googlecode.com/svn/trunk/WJoy/WJoyLatestVersion.plist 29 | 30 | 31 | -------------------------------------------------------------------------------- /Wiimote/WiimoteBalanceBoardDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteBalanceBoardDelegate.m 3 | // WiimoteBalanceBoard 4 | // 5 | // Created by alxn1 on 10.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteBalanceBoardDelegate.h" 10 | 11 | NSString *WiimoteBalanceBoardPressChangedNotification = @"WiimoteBalanceBoardPressChangedNotification"; 12 | 13 | NSString *WiimoteBalanceBoardTopLeftPressKey = @"WiimoteBalanceBoardTopLeftPressKey"; 14 | NSString *WiimoteBalanceBoardTopRightPressKey = @"WiimoteBalanceBoardTopRightPressKey"; 15 | NSString *WiimoteBalanceBoardBottomLeftPressKey = @"WiimoteBalanceBoardBottomLeftPressKey"; 16 | NSString *WiimoteBalanceBoardBottomRightPressKey = @"WiimoteBalanceBoardBottomRightPressKey"; 17 | 18 | @implementation NSObject (WiimoteBalanceBoardDelegate) 19 | 20 | - (void) wiimote:(Wiimote*)wiimote 21 | balanceBoard:(WiimoteBalanceBoardExtension*)balanceBoard 22 | topLeftPress:(double)topLeft 23 | topRightPress:(double)topRight 24 | bottomLeftPress:(double)bottomLeft 25 | bottomRightPress:(double)bottomRight 26 | { 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVAudioPacketConverter.h: -------------------------------------------------------------------------------- 1 | // 2 | // AVAudioPacketConverter.h 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVMutableAudioPacket.h" 10 | 11 | #import "avformat.h" 12 | #import "avcodec.h" 13 | 14 | @interface AVAudioPacketConverter : NSObject 15 | { 16 | @private 17 | AVAudioFormat *m_InputFormat; 18 | AVMutableAudioPacket *m_AudioPacket; 19 | 20 | NSUInteger m_InputSampleSize; 21 | NSUInteger m_OutputSampleSize; 22 | double m_DataScaleFactor; 23 | 24 | ReSampleContext *m_Context; 25 | } 26 | 27 | + (enum AVSampleFormat)encodeFFMPEGSampleFormat:(AVAudioSampleFormat)sampleFormat; 28 | + (NSUInteger)audioSampleSize:(AVAudioSampleFormat)sampleFormat; 29 | 30 | - (id)initWithInputAudioFormat:(AVAudioFormat*)inputFormat 31 | outputAudioFormat:(AVAudioFormat*)outputFormat; 32 | 33 | - (AVAudioFormat*)inputFormat; 34 | - (AVAudioFormat*)outputFormat; 35 | 36 | - (AVAudioPacket*)convert:(AVAudioPacket*)packet; 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Button.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Button.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+Button.h" 10 | 11 | @implementation WiimoteEventDispatcher (Button) 12 | 13 | - (void)postButtonPressedNotification:(WiimoteButtonType)button 14 | { 15 | [[self delegate] wiimote:[self owner] buttonPressed:button]; 16 | 17 | if([self isStateNotificationsEnabled]) 18 | { 19 | [self postNotification:WiimoteButtonPresedNotification 20 | param:[NSNumber numberWithInteger:button] 21 | key:WiimoteButtonKey]; 22 | } 23 | } 24 | 25 | - (void)postButtonReleasedNotification:(WiimoteButtonType)button 26 | { 27 | [[self delegate] wiimote:[self owner] buttonReleased:button]; 28 | 29 | if([self isStateNotificationsEnabled]) 30 | { 31 | [self postNotification:WiimoteButtonReleasedNotification 32 | param:[NSNumber numberWithInteger:button] 33 | key:WiimoteButtonKey]; 34 | } 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /Wiimote/WiimotePartSet.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimotePartSet.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimotePart.h" 10 | #import "WiimoteDevice.h" 11 | #import "WiimoteIOManager+Private.h" 12 | #import "WiimoteEventDispatcher+Private.h" 13 | 14 | @interface WiimotePartSet : NSObject 15 | { 16 | @private 17 | Wiimote *m_Owner; 18 | WiimoteDevice *m_Device; 19 | 20 | WiimoteIOManager *m_IOManager; 21 | WiimoteEventDispatcher *m_EventDispatcher; 22 | 23 | NSMutableDictionary *m_PartDictionary; 24 | NSMutableArray *m_PartArray; 25 | } 26 | 27 | + (void)registerPartClass:(Class)cls; 28 | 29 | - (id)initWithOwner:(Wiimote*)owner device:(WiimoteDevice*)device; 30 | 31 | - (Wiimote*)owner; 32 | - (WiimoteDevice*)device; 33 | - (WiimoteEventDispatcher*)eventDispatcher; 34 | 35 | - (WiimotePart*)partWithClass:(Class)cls; 36 | 37 | - (WiimoteDeviceReportType)bestReportType; 38 | 39 | - (void)connected; 40 | - (void)handleReport:(WiimoteDeviceReport*)report; 41 | - (void)disconnected; 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /fun/ice/ice-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | ice_tray 11 | CFBundleIdentifier 12 | com.alxn1.${PRODUCT_NAME:rfc1034identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | ${MACOSX_DEPLOYMENT_TARGET} 27 | LSUIElement 28 | 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /UserNotification/MainController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainController.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 18.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class UserNotificationCenterScreenCornerView; 12 | 13 | @interface MainController : NSObject 14 | { 15 | @private 16 | IBOutlet NSWindow *window; 17 | IBOutlet NSTextField *titleTextField; 18 | IBOutlet NSTextField *textTextField; 19 | IBOutlet NSMatrix *notificationSystemMatrix; 20 | IBOutlet NSButton *afterDelayCheckBox; 21 | IBOutlet NSButton *postNotificationButton; 22 | IBOutlet NSButton *soundEnabledCheck; 23 | IBOutlet UserNotificationCenterScreenCornerView *cornerView; 24 | IBOutlet NSSlider *durationSlider; 25 | 26 | NSTimer *growlAvailableCheckTimer; 27 | } 28 | 29 | - (IBAction)showNotification:(id)sender; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /Wiimote/WiimoteInquiry.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteInquiry.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 25.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class IOBluetoothDeviceInquiry; 12 | 13 | FOUNDATION_EXPORT NSString *WiimoteDeviceName; 14 | FOUNDATION_EXPORT NSString *WiimoteDeviceNameTR; 15 | FOUNDATION_EXPORT NSString *WiimoteDeviceNameUPro; 16 | FOUNDATION_EXPORT NSString *WiimoteDeviceNameBalanceBoard; 17 | 18 | @interface WiimoteInquiry : NSObject 19 | { 20 | @private 21 | BOOL m_IsUseOneButtonClickConnection; 22 | 23 | IOBluetoothDeviceInquiry *m_Inquiry; 24 | id m_Target; 25 | SEL m_Action; 26 | } 27 | 28 | + (BOOL)isBluetoothEnabled; 29 | 30 | + (WiimoteInquiry*)sharedInquiry; 31 | 32 | + (NSArray*)supportedModelNames; 33 | + (void)registerSupportedModelName:(NSString*)name; 34 | 35 | - (BOOL)isStarted; 36 | - (BOOL)startWithTarget:(id)target didEndAction:(SEL)action; 37 | - (BOOL)stop; 38 | 39 | - (BOOL)isUseOneButtonClickConnection; 40 | - (void)setUseOneButtonClickConnection:(BOOL)useOneButtonClickConnection; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /Wiimote/WiimoteEventDispatcher+Private.m: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteEventDispatcher+Private.m 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 30.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "WiimoteEventDispatcher+Private.h" 10 | #import "WiimoteDelegate.h" 11 | 12 | @implementation WiimoteEventDispatcher (Private) 13 | 14 | - (id)init 15 | { 16 | [[super init] release]; 17 | return nil; 18 | } 19 | 20 | - (id)initWithOwner:(Wiimote*)owner 21 | { 22 | self = [super init]; 23 | if(self == nil) 24 | return nil; 25 | 26 | m_Owner = owner; 27 | m_IsStateNotificationsEnabled = YES; 28 | 29 | return self; 30 | } 31 | 32 | - (void)postConnectedNotification 33 | { 34 | [self postNotification:WiimoteConnectedNotification]; 35 | } 36 | 37 | - (void)postDisconnectNotification 38 | { 39 | [[self delegate] wiimoteDisconnected:[self owner]]; 40 | [self postNotification:WiimoteDisconnectedNotification]; 41 | } 42 | 43 | - (void)setStateNotificationsEnabled:(BOOL)flag 44 | { 45 | m_IsStateNotificationsEnabled = flag; 46 | } 47 | 48 | - (void)setDelegate:(id)delegate 49 | { 50 | m_Delegate = delegate; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/AVMutableAudioPacket.m: -------------------------------------------------------------------------------- 1 | // 2 | // AVMutableAudioPacket.m 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 07.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AVMutableAudioPacket.h" 10 | 11 | @interface AVAudioPacket (PrivatePart) 12 | 13 | - (id)initWithAudioFormat:(AVAudioFormat*)format; 14 | 15 | @end 16 | 17 | @implementation AVMutableAudioPacket 18 | 19 | - (id)initWithAudioFormat:(AVAudioFormat*)format 20 | { 21 | return [super initWithAudioFormat:format]; 22 | } 23 | 24 | - (NSMutableData*)mutableData 25 | { 26 | return [[m_Data retain] autorelease]; 27 | } 28 | 29 | @end 30 | 31 | @implementation AVAudioPacket (PrivatePart) 32 | 33 | - (id)initWithAudioFormat:(AVAudioFormat*)format 34 | { 35 | self = [super init]; 36 | if(self == nil) 37 | return nil; 38 | 39 | if(format == nil) 40 | { 41 | [self release]; 42 | return nil; 43 | } 44 | 45 | m_Format = [format retain]; 46 | m_Data = [[NSMutableData alloc] init]; 47 | 48 | return self; 49 | } 50 | 51 | - (void)dealloc 52 | { 53 | [m_Format release]; 54 | [m_Data release]; 55 | [super dealloc]; 56 | } 57 | 58 | @end 59 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/Wiimote+Audio.m: -------------------------------------------------------------------------------- 1 | // 2 | // Wiimote+Audio.m 3 | // WiimoteAudioEngine 4 | // 5 | // Created by alxn1 on 08.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "Wiimote+Audio.h" 10 | #import "WiimoteAudioPart.h" 11 | 12 | @implementation Wiimote (Audio) 13 | 14 | - (BOOL)playAudioData:(NSData*)data volume:(double)volume 15 | { 16 | return [(WiimoteAudioPart*) 17 | [self partWithClass:[WiimoteAudioPart class]] 18 | playAudioData:data 19 | volume:volume]; 20 | } 21 | 22 | - (BOOL)playAudio:(WiimoteAudioSource*)audioSource volume:(double)volume 23 | { 24 | return [(WiimoteAudioPart*) 25 | [self partWithClass:[WiimoteAudioPart class]] 26 | playAudio:audioSource 27 | volume:volume]; 28 | } 29 | 30 | - (BOOL)playAudioFile:(NSString*)filePath volume:(double)volume 31 | { 32 | return [self playAudio:[WiimoteAudioSource sourceFromFile:filePath] 33 | volume:volume]; 34 | } 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /WJoy/WJoy-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | app 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | LSMinimumSystemVersion 24 | ${MACOSX_DEPLOYMENT_TARGET} 25 | LSUIElement 26 | 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | UALatesVersionPlistURL 32 | http://wjoy.googlecode.com/svn/trunk/WJoy/WJoyLatestVersion.plist 33 | 34 | 35 | -------------------------------------------------------------------------------- /experimental/WiimoteAudioEngine/ffmpeg/include/libavutil/random_seed.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2009 Baptiste Coudurier 3 | * 4 | * This file is part of FFmpeg. 5 | * 6 | * FFmpeg is free software; you can redistribute it and/or 7 | * modify it under the terms of the GNU Lesser General Public 8 | * License as published by the Free Software Foundation; either 9 | * version 2.1 of the License, or (at your option) any later version. 10 | * 11 | * FFmpeg is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with FFmpeg; if not, write to the Free Software 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 | */ 20 | 21 | #ifndef AVUTIL_RANDOM_SEED_H 22 | #define AVUTIL_RANDOM_SEED_H 23 | 24 | #include 25 | 26 | /** 27 | * Get a seed to use in conjunction with random functions. 28 | */ 29 | uint32_t av_get_random_seed(void); 30 | 31 | #endif /* AVUTIL_RANDOM_SEED_H */ 32 | -------------------------------------------------------------------------------- /Wiimote/WiimoteAccelerometer.h: -------------------------------------------------------------------------------- 1 | // 2 | // WiimoteAccelerometer.h 3 | // Wiimote 4 | // 5 | // Created by alxn1 on 06.08.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WiimoteAccelerometer : NSObject 12 | { 13 | @private 14 | BOOL m_IsEnabled; 15 | 16 | CGFloat m_GravityX; 17 | CGFloat m_GravityY; 18 | CGFloat m_GravityZ; 19 | 20 | CGFloat m_Pitch; 21 | CGFloat m_Roll; 22 | 23 | CGFloat m_GravitySmoothQuant; 24 | CGFloat m_AnglesSmoothQuant; 25 | 26 | uint16_t m_ZeroX; 27 | uint16_t m_ZeroY; 28 | uint16_t m_ZeroZ; 29 | 30 | uint16_t m_1gX; 31 | uint16_t m_1gY; 32 | uint16_t m_1gZ; 33 | 34 | id m_Delegate; 35 | } 36 | 37 | - (BOOL)isEnabled; 38 | - (void)setEnabled:(BOOL)enabled; 39 | 40 | - (CGFloat)gravityX; 41 | - (CGFloat)gravityY; 42 | - (CGFloat)gravityZ; 43 | 44 | - (CGFloat)pitch; 45 | - (CGFloat)roll; 46 | 47 | - (CGFloat)gravitySmoothQuant; 48 | - (void)setGravitySmoothQuant:(CGFloat)quant; 49 | 50 | - (CGFloat)anglesSmoothQuant; 51 | - (void)setAnglesSmoothQuant:(CGFloat)quant; 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /LocalizationUtils/English.lproj/Localizable.strings: -------------------------------------------------------------------------------- 1 | /* 2 | Localizable.strings 3 | test 4 | 5 | Created by alxn1 on 03.12.12. 6 | Copyright 2012 alxn1. All rights reserved. 7 | */ 8 | 9 | "CheckBox" = "CheckBox"; 10 | "Button" = "Button"; 11 | "First" = "First"; 12 | "Second" = "Second"; 13 | "File" = "File"; 14 | "Edit" = "Edit"; 15 | "Cut" = "Cut"; 16 | "Format" = "Format"; 17 | "View" = "View"; 18 | "Window" = "Window"; 19 | "Help" = "Help"; 20 | "Services" = "Services"; 21 | "Show All" = "Show All"; 22 | "Box" = "Box"; 23 | "Tab" = "Tab"; 24 | "View" = "View"; 25 | "\"Button\"" = "\"Button\""; 26 | "Every place I look says that you have to replicate the entire xib file for each localization instance, even though you really only wanted to rip the text out and replicate the text in a different language for each localization instance." = "Every place I look says that you have to replicate the entire xib file for each localization instance, even though you really only wanted to rip the text out and replicate the text in a different language for each localization instance."; 27 | -------------------------------------------------------------------------------- /UserNotification/NotificationWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // NotificationWindow.h 3 | // UserNotification 4 | // 5 | // Created by alxn1 on 19.07.12. 6 | // Copyright 2012 alxn1. All rights reserved. 7 | // 8 | 9 | #import "AnimatedWindow.h" 10 | #import "UserNotification.h" 11 | #import "NotificationWindowView.h" 12 | 13 | @interface NotificationWindow : AnimatedWindow 14 | { 15 | @private 16 | UserNotification *m_Notification; 17 | NSTimer *m_AutocloseTimer; 18 | 19 | BOOL m_IsMouseEntered; 20 | BOOL m_IsCloseOnMouseExited; 21 | 22 | id m_Target; 23 | SEL m_Action; 24 | } 25 | 26 | + (NSRect)bestRectForNotification:(UserNotification*)notification; 27 | 28 | + (NotificationWindow*)newWindowWithNotification:(UserNotification*)notification frame:(NSRect)frame; 29 | 30 | - (id)initWithNotification:(UserNotification*)notification frame:(NSRect)frame; 31 | - (void)dealloc; 32 | 33 | - (id)target; 34 | - (void)setTarget:(id)obj; 35 | 36 | - (SEL)action; 37 | - (void)setAction:(SEL)sel; 38 | 39 | - (void)showWithTimeout:(NSTimeInterval)timeout; 40 | - (void)close; 41 | 42 | - (UserNotification*)notification; 43 | 44 | @end 45 | --------------------------------------------------------------------------------