From fdd46ea71a378ba1810899b87d498d9035b22f88 Mon Sep 17 00:00:00 2001 From: Adrian Biagioli Date: Fri, 28 Aug 2015 01:45:42 -0400 Subject: [PATCH] Documentation Fixes, Changed mac dylib to bundle (Unity Compatible) --- Assets/Wiimote/Plugins/mac/hidapi.bundle.meta | 68 ++++ .../Plugins/mac/hidapi.bundle/Contents.meta | 9 + .../mac/hidapi.bundle/Contents/Info.plist | 42 +++ .../Contents/Info.plist.meta} | 4 +- .../mac/hidapi.bundle/Contents/MacOS.meta | 9 + .../mac/hidapi.bundle/Contents/MacOS/hidapi | Bin 0 -> 17660 bytes .../hidapi.bundle/Contents/MacOS/hidapi.meta | 8 + Assets/Wiimote/Plugins/mac/libhidapi.dylib | Bin 24268 -> 0 bytes Assets/Wiimote/Scripts/Wiimote.cs | 7 +- .../Wiimote/Scripts/WiimoteData/AccelData.cs | 16 +- Assets/Wiimote/Scripts/WiimoteData/IRData.cs | 19 +- Assets/Wiimote/Scripts/WiimoteManager.cs | 6 +- Unity-Wiimote.sublime-workspace | 327 ++++++++++++++++-- 13 files changed, 470 insertions(+), 45 deletions(-) create mode 100644 Assets/Wiimote/Plugins/mac/hidapi.bundle.meta create mode 100644 Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents.meta create mode 100644 Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist rename Assets/Wiimote/Plugins/mac/{libhidapi.dylib.meta => hidapi.bundle/Contents/Info.plist.meta} (64%) create mode 100644 Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS.meta create mode 100755 Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi create mode 100644 Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi.meta delete mode 100755 Assets/Wiimote/Plugins/mac/libhidapi.dylib diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle.meta b/Assets/Wiimote/Plugins/mac/hidapi.bundle.meta new file mode 100644 index 0000000..fbd2c5e --- /dev/null +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle.meta @@ -0,0 +1,68 @@ +fileFormatVersion: 2 +guid: f735e311710bf4dff9c88fc40dde6fc8 +folderAsset: yes +timeCreated: 1440740276 +licenseType: Free +PluginImporter: + serializedVersion: 1 + iconMap: {} + executionOrder: {} + isPreloaded: 0 + platformData: + Android: + enabled: 0 + settings: + CPU: AnyCPU + Any: + enabled: 1 + settings: {} + Editor: + enabled: 0 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: OSX + Linux: + enabled: 0 + settings: + CPU: x86 + Linux64: + enabled: 0 + settings: + CPU: x86_64 + LinuxUniversal: + enabled: 0 + settings: + CPU: None + OSXIntel: + enabled: 1 + settings: + CPU: AnyCPU + OSXIntel64: + enabled: 1 + settings: + CPU: AnyCPU + OSXUniversal: + enabled: 1 + settings: + CPU: AnyCPU + SamsungTV: + enabled: 0 + settings: + STV_MODEL: STANDARD_13 + Win: + enabled: 0 + settings: + CPU: AnyCPU + Win64: + enabled: 0 + settings: + CPU: AnyCPU + iOS: + enabled: 0 + settings: + CompileFlags: + FrameworkDependencies: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents.meta b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents.meta new file mode 100644 index 0000000..64a8127 --- /dev/null +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 82e3be018a2c848249d81909ca06aecb +folderAsset: yes +timeCreated: 1440740276 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist new file mode 100644 index 0000000..faea747 --- /dev/null +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist @@ -0,0 +1,42 @@ + + + + + BuildMachineOSBuild + 14F27 + CFBundleDevelopmentRegion + en + CFBundleExecutable + hidapi + CFBundleIdentifier + com.signal11.hidapi + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + hidapi + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 6E35b + DTPlatformVersion + GM + DTSDKBuild + 14D125 + DTSDKName + macosx10.10 + DTXcode + 0640 + DTXcodeBuild + 6E35b + NSHumanReadableCopyright + Copyright © 2015 signal11. All rights reserved. + + diff --git a/Assets/Wiimote/Plugins/mac/libhidapi.dylib.meta b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist.meta similarity index 64% rename from Assets/Wiimote/Plugins/mac/libhidapi.dylib.meta rename to Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist.meta index 4233a4e..c56cd35 100644 --- a/Assets/Wiimote/Plugins/mac/libhidapi.dylib.meta +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/Info.plist.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: 567b30a7910d74e2296325afde7fd565 -timeCreated: 1428351278 +guid: 9f5358b3db23a49fbba414e2930f127e +timeCreated: 1440740277 licenseType: Free DefaultImporter: userData: diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS.meta b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS.meta new file mode 100644 index 0000000..38a3eea --- /dev/null +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: bf449f9900e31488980ab02b943a91e4 +folderAsset: yes +timeCreated: 1440740277 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/M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?0L;jTOr_dTl&p!YtD-cxx literal 0 HcmV?d00001 diff --git a/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi.meta b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi.meta new file mode 100644 index 0000000..58465e7 --- /dev/null +++ b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 175018180ed414521b0d47d393f347df +timeCreated: 1440740277 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Wiimote/Plugins/mac/libhidapi.dylib b/Assets/Wiimote/Plugins/mac/libhidapi.dylib deleted file mode 100755 index 55fa7c35c8547d34828a7bba60d499a02c596b72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24268 zcmeHv3w%`7x$mApB)mESAH|9iHQ1;vNqpT<6lP2Udvv0a@H$l-hGaq_NhVHaB(#db zB+Bk~dSVZ?)T3?MTP^2YTGRF*5ep8567VWUJ#D$wD`}6n?liPTZISvQ_y1pO?a7`U zP&!>$3)Mv$nje2B9TPWOaD)h+Q@ebXA1!L6@b>3dx9ZQRzEVJnECP@-vFeN#=S zzNt1U@XY$^g;H{hQb63TL$O2>3PtKdwXtwxL{i=M4Jdsxlo0WcsxRH(Fgh$0D)TS# zDNUx5z zFIU-P*ORzg-@FWc4dIWnuR!TLpq!VuQy=R)KSN)2taK4G7MD0h;l&qTcH=C=xjj z3Cjs@AAGrC{&js%_wRb}#*SN#=Yy8ZER!aQ!0Aokq~V!@umXXyv{lp2gw<$|s`V}L zNMm8JeswGyTVJ@4Lv&pk!gljJ3d63yihESPP7`z*r0XztjRtb>n|jRTii8_UpPX zgyD(Bx|w}5UXpaPr1-eC67N^Ku}3$iwt(9^j7RT082^0naou>)x{+M-{1sqX^#Yzc zQ;1H}jU&3T-^vG(y7%SWx^k~~R+*-;Jl(u*HbnH!;rIn8;}3Wj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NDo<`u`xjut{$M;=CPau3B;s1wv z=V^sY@kWau60E`Jbxnn3(RDaX2-ma}%HLuvYz$WyYJlfdf0CSY@a`u>=R`GecpwfA z1Qg+mzl73n|2Pm@8L!4$L&-RHt^G(=|Tnr)nP3|IR%zG6Furk8x-wx@WZ8oz|~T>4nOJo#*p7 ztiMT|RV_*%**i({L>?6TC|-c#44#nt@O^{^b@r)y22mWhk5ER=*+*y@2kdULI$3v+ zd89sqs|M zmpWBG_l=Y@kRGWh9RC@1yQ_fIlM#?4bE$#LhD$$;PD_&0-gdc#x!=swr=(#KzC z@+Q)GaY5X1W07%DDXuCqDDvvkzP6C}6`2gt-zG`38QX^|0i7Kla&Af diff --git a/Assets/Wiimote/Scripts/Wiimote.cs b/Assets/Wiimote/Scripts/Wiimote.cs index d4bb511..d80da28 100644 --- a/Assets/Wiimote/Scripts/Wiimote.cs +++ b/Assets/Wiimote/Scripts/Wiimote.cs @@ -58,6 +58,11 @@ public class Wiimote } } + /// If this Wiimote is a Wii U Pro Controller, + /// this contains all relevant Pro Controller data as it is reported by + /// the Controller. If this Wiimote is not a Wii U Pro Controller, this is \c null. + /// + /// \sa current_ext public WiiUProData WiiUPro { get { if(current_ext == ExtensionController.WIIU_PRO) @@ -494,7 +499,7 @@ public int SendStatusInfoRequest() /// /// Reading from the Wii Remote's internal registers can give important data not available through normal output reports. /// This can, for example, be used to read saved Mii data from the Wii Remote's EEPROM registers. It is also used by some - /// of WiimoteApi's setup functions (RequestIdentifyExtension() for example). + /// of WiimoteApi's setup functions. /// /// If you use this incorrectly (for example, if you attempt to read from an invalid block of data), \c Responder will not be called. public int SendRegisterReadRequest(RegisterType type, int offset, int size, ReadResponder Responder) diff --git a/Assets/Wiimote/Scripts/WiimoteData/AccelData.cs b/Assets/Wiimote/Scripts/WiimoteData/AccelData.cs index 6da0f19..08d296a 100644 --- a/Assets/Wiimote/Scripts/WiimoteData/AccelData.cs +++ b/Assets/Wiimote/Scripts/WiimoteData/AccelData.cs @@ -10,11 +10,11 @@ public class AccelData : WiimoteData /// This is only updated if the Wii Remote has a report mode that supports /// the Accelerometer. /// - /// Range: 0 - 1024 - /// The sign of the directions below are with respect to the zero point of the accelerometer: - /// Up/Down: +Z/-Z - /// Left/Right: +X/-X - /// Forward/Backward: -Y/+Y + /// Range: 0 - 1024\n + /// *The sign of the directions below are with respect to the zero point of the accelerometer:*\n + /// Up/Down: +Z/-Z\n + /// Left/Right: +X/-X\n + /// Forward/Backward: -Y/+Y\n public ReadOnlyArray accel { get { return _accel_readonly; } } private ReadOnlyArray _accel_readonly; private int[] _accel; @@ -107,9 +107,9 @@ public float[] GetAccelZeroPoints() /// These values are in Wii Remote coordinates (in the direction of gravity) /// \sa CalibrateAccel(), GetAccelZeroPoints(), accel, accel_calib /// - /// Range: -1 to 1 - /// Up/Down: +Z/-Z - /// Left/Right: +X/-X + /// Range: -1 to 1\n + /// Up/Down: +Z/-Z\n + /// Left/Right: +X/-X\n /// Forward/Backward: -Y/+Y public float[] GetCalibratedAccelData() { diff --git a/Assets/Wiimote/Scripts/WiimoteData/IRData.cs b/Assets/Wiimote/Scripts/WiimoteData/IRData.cs index a4b43ff..da56507 100644 --- a/Assets/Wiimote/Scripts/WiimoteData/IRData.cs +++ b/Assets/Wiimote/Scripts/WiimoteData/IRData.cs @@ -12,12 +12,12 @@ public class IRData : WiimoteData /// /// This is only updated if the Wii Remote has a report mode with IR /// - /// | Position X | Position Y | Size | X min | Y min | X max | Y max | Intensity - /// ------ | ---------- | ---------- | ------ | ------- | ------- | ------- | ------- | --------- - /// Range: | 0 - 1023 | 0 - 767 | 0 - 15 | 0 - 127 | 0 - 127 | 0 - 127 | 0 - 127 | 0 - 256 - /// Index: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 + /// | | Position X | Position Y | Size | X min | Y min | X max | Y max | Intensity | + /// |------ | ---------- | ---------- | ------ | ------- | ------- | ------- | ------- | --------- | + /// |Range: | 0 - 1023 | 0 - 767 | 0 - 15 | 0 - 127 | 0 - 127 | 0 - 127 | 0 - 127 | 0 - 256 | + /// |Index: | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | /// - /// int[dot index, x (0) / y (1) / size (2) / xmin (3) / ymin (4) / xmax (5) / ymax (6) / intensity (7)] + /// \code int[dot index, x (0) / y (1) / size (2) / xmin (3) / ymin (4) / xmax (5) / ymax (6) / intensity (7)] \endcode /// /// \sa IRDataType, Wiimote::SetupIRCamera(IRDataType) public ReadOnlyMatrix ir { get { return _ir_readonly; } } @@ -221,10 +221,11 @@ public float[] GetIRMidpoint(bool predict = true) /// \brief Attempts to identify which of the four IR "dots" reported by the Wii Remote are from the Wii sensor bar. /// \param predict If true, and one of the dots is outside of the Wii Remote's field of view, /// WiimoteApi will attempt to predict the other dot's position outside of the screen (default true). - /// \return First Dimension: Index of detected IR dot. - /// Second Dimension: 0: X, 1: Y, 2: Index in \link ir (or -1 if predicted) - /// Size: 2x3 - /// Range: 0-1 with respect to the Wii Remote Camera dimensions. If \c predict is true this may be outside of that range. + /// + /// \returns First Dimension: Index of detected IR dot.\n + /// Second Dimension: 0: X, 1: Y, 2: Index in \link ir \endlink (or -1 if predicted)\n + /// Size: 2x3\n + /// Range: 0-1 with respect to the Wii Remote Camera dimensions. If \c predict is true this may be outside of that range. public float[,] GetProbableSensorBarIR(bool predict = true) { // If necessary, change the current "sensor bar" IR indices to new ones. This happens if one of the dots went out of focus and a new one took its place. diff --git a/Assets/Wiimote/Scripts/WiimoteManager.cs b/Assets/Wiimote/Scripts/WiimoteManager.cs index 351bfd5..14d3ab7 100644 --- a/Assets/Wiimote/Scripts/WiimoteManager.cs +++ b/Assets/Wiimote/Scripts/WiimoteManager.cs @@ -9,9 +9,9 @@ namespace WiimoteApi { public class WiimoteManager { - public const ushort vendor_id_wiimote = 0x057e; - public const ushort product_id_wiimote = 0x0306; - public const ushort product_id_wiimoteplus = 0x0330; + private const ushort vendor_id_wiimote = 0x057e; + private const ushort product_id_wiimote = 0x0306; + private const ushort product_id_wiimoteplus = 0x0330; /// A list of all currently connected Wii Remotes. public static List Wiimotes { get { return _Wiimotes; } } diff --git a/Unity-Wiimote.sublime-workspace b/Unity-Wiimote.sublime-workspace index 55d5744..3033c6c 100644 --- a/Unity-Wiimote.sublime-workspace +++ b/Unity-Wiimote.sublime-workspace @@ -3,15 +3,47 @@ { "selected_items": [ + [ + "PR", + "WIIU_PRO ExtensionController" + ], + [ + "GUILay", + "GUILayout GUILayout" + ] ] }, "buffers": [ { - "file": "/C/Users/Adrian/Downloads/wiic/src/wiic/motionplus.c", + "file": "Assets/Wiimote/Scripts/WiimoteManager.cs", + "settings": + { + "buffer_size": 7241, + "line_ending": "Unix" + } + }, + { + "file": "Assets/Wiimote/Scripts/Wiimote.cs", + "settings": + { + "buffer_size": 37228, + "line_ending": "Unix" + } + }, + { + "file": "Assets/Wiimote/Scripts/WiimoteData/IRData.cs", + "settings": + { + "buffer_size": 12282, + "line_ending": "Unix" + } + }, + { + "file": "Assets/Wiimote/Scripts/WiimoteData/AccelData.cs", "settings": { - "buffer_size": 6569, + "buffer_size": 5577, "line_ending": "Unix" } } @@ -53,20 +85,28 @@ }, "expanded_folders": [ - "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity", - "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/Assets", - "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/Assets/Art", - "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/Assets/Wiimote", - "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/hidapi-modified" + "/Users/Adrian/Documents/GitHub/Unity-Wiimote", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Scripts", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteData" ], "file_history": [ + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteManager.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteData/IRData.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/Wiimote.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteData/MotionPlusData.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Scripts/WiimoteDemo.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteData/AccelData.cs", + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/Enums.cs", + "/C/Users/Adrian/Downloads/wiic/src/wiic/motionplus.c", "/C/Users/Adrian/AppData/Roaming/Sublime Text 3/Packages/User/Preferences.sublime-settings", "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/hidapi-modified/hid-windows.c", "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/LICENSE.txt", "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/README.md", "/C/Users/Adrian/Documents/Random Unity Projects/Wiimote-Unity/Unity-Wiimote.sublime-project", - "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/WiimoteManager.cs", "/Users/Adrian/Library/Application Support/Sublime Text 3/Packages/Default/Preferences.sublime-settings", "/Users/Adrian/Library/Application Support/Sublime Text 3/Packages/User/Preferences.sublime-settings", "/Users/Adrian/Library/Application Support/Sublime Text 3/Packages/OmniSharp/Default.sublime-keymap", @@ -74,9 +114,7 @@ "/Users/Adrian/Library/Application Support/Sublime Text 3/Packages/User/OmniSharpSublime.sublime-settings", "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Unity-Wiimote.sublime-project", "/Users/Adrian/Library/Application Support/Sublime Text 3/Packages/User/C#.sublime-settings", - "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/HIDapi.cs", - "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/Enums.cs", - "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/Wiimote.cs" + "/Users/Adrian/Documents/GitHub/Unity-Wiimote/Assets/Wiimote/Scripts/HIDapi.cs" ], "find": { @@ -112,33 +150,278 @@ "groups": [ { - "selected": 0, + "selected": 3, "sheets": [ { "buffer": 0, - "file": "/C/Users/Adrian/Downloads/wiic/src/wiic/motionplus.c", + "file": "Assets/Wiimote/Scripts/WiimoteManager.cs", + "semi_transient": false, + "settings": + { + "buffer_size": 7241, + "regions": + { + }, + "selection": + [ + [ + 330, + 330 + ] + ], + "settings": + { + "oops": + { + "129,134": "Using directive is not used by code and can be removed safely.", + "195,209": "This class is recommended to be defined as static", + "2322,2337": "Use 'var' keyword", + "2435,2440": "Convert to constant", + "3216,3224": "'System.String.EndsWith' is culture-aware and missing a StringComparison argument", + "5023,5027": "Parameter can be IEnumerable", + "5309,5323": "Use 'var' keyword", + "5599,5609": "Method never reaches its end or a 'return' statement.", + "7171,7178": "Name should have prefix '_'. (Rule 'Fields').", + "7202,7206": "Name should have prefix '_'. (Rule 'Fields').", + "783,788": "Initializing field by default value is redundant" + }, + "syntax": "Packages/C#/C#.tmLanguage", + "tab_size": 4, + "translate_tabs_to_spaces": true + }, + "translation.x": 0.0, + "translation.y": 71.0, + "zoom_level": 1.0 + }, + "stack_index": 3, + "type": "text" + }, + { + "buffer": 1, + "file": "Assets/Wiimote/Scripts/Wiimote.cs", + "semi_transient": false, + "settings": + { + "buffer_size": 37228, + "regions": + { + }, + "selection": + [ + [ + 22096, + 22096 + ] + ], + "settings": + { + "oops": + { + "11668,11672": "Redundant explicit array type specification", + "12384,12386": "Convert to 'return' statement", + "1406,1408": "Convert to 'return' statement", + "15265,15267": "Convert to 'return' statement", + "16256,16258": "Convert to 'return' statement", + "16697,16699": "Attribute value must be quoted", + "17046,17047": "'>' or '/>' expected", + "17122,17126": "Use 'var' keyword", + "17727,17728": "Attribute name expected", + "17728,17729": "Attribute value must be quoted", + "18063,18064": "'>' or '/>' expected", + "18097,18101": "Parameter can be IComparable", + "18108,18112": "Parameter can be IComparable", + "18119,18123": "Parameter can be IComparable", + "18130,18134": "Parameter can be IComparable", + "18346,18350": "Redundant explicit array type specification", + "18831,18832": "Attribute name expected", + "18832,18833": "Attribute value must be quoted", + "18896,18897": "'>' or '/>' expected", + "19150,19154": "Redundant ToString() call", + "19457,19464": "Parameter can be IComparable", + "19480,19484": "Use 'var' keyword", + "19494,19497": "Redundant array creation expression", + "19498,19502": "Redundant explicit array type specification", + "19857,19864": "Parameter can be IComparable", + "1988,1990": "Convert to 'return' statement", + "19880,19884": "Use 'var' keyword", + "19894,19897": "Redundant array creation expression", + "19898,19902": "Redundant explicit array type specification", + "20052,20057": "Parameter can be IComparable", + "20073,20077": "Use 'var' keyword", + "20087,20090": "Redundant array creation expression", + "20091,20095": "Redundant explicit array type specification", + "20287,20288": "Attribute name expected", + "20288,20289": "Attribute value must be quoted", + "20420,20421": "'>' or '/>' expected", + "21047,21048": "Attribute name expected", + "21048,21049": "Attribute value must be quoted", + "21404,21405": "Attribute value must be quoted", + "21576,21577": "Attribute value must be quoted", + "21643,21644": "Attribute value must be quoted", + "21809,21810": "'>' or '/>' expected", + "22328,22332": "Use 'var' keyword", + "22343,22346": "Redundant array creation expression", + "22347,22351": "Redundant explicit array type specification", + "22914,22915": "Attribute name expected", + "22915,22916": "Attribute value must be quoted", + "23435,23436": "Missing ''", + "23673,23677": "Use 'var' keyword", + "24131,24133": "Attribute value must be quoted", + "2438,2440": "Convert to 'return' statement", + "24441,24444": "'=' expected", + "24776,24779": "Quote \" expected", + "24803,24804": "Missing ''", + "24850,24854": "Use 'var' keyword", + "25132,25136": "Use 'var' keyword", + "25726,25730": "Redundant explicit array type specification", + "25968,25972": "Use 'var' keyword", + "25983,25986": "Redundant array creation expression", + "25987,25991": "Redundant explicit array type specification", + "27384,27388": "Redundant explicit array type specification", + "28540,28544": "Redundant explicit array type specification", + "28863,28867": "Use 'var' keyword", + "29291,29295": "Redundant explicit array type specification", + "29601,29605": "Redundant explicit array type specification", + "29792,29796": "Redundant explicit array type specification", + "29897,29901": "Redundant explicit array type specification", + "30111,30115": "Redundant explicit array type specification", + "30530,30534": "Redundant explicit array type specification", + "30635,30639": "Redundant explicit array type specification", + "31010,31014": "Redundant explicit array type specification", + "31431,31435": "Redundant explicit array type specification", + "3150,3163": "'hidapi_handle' should start with an upper case letter. (Rule 'Properties')", + "31536,31540": "Redundant explicit array type specification", + "31979,31983": "Redundant explicit array type specification", + "32555,32559": "Redundant explicit array type specification", + "32660,32664": "Redundant explicit array type specification", + "34351,34355": "Redundant explicit array type specification", + "34452,34456": "Use 'var' keyword", + "34499,34503": "Use 'var' keyword", + "3534,3538": "Initializing field by default value is redundant", + "35342,35344": "Convert to '?:' expression", + "3677,3688": "'hidapi_path' should start with an upper case letter. (Rule 'Properties')", + "3889,3893": "Initializing field by default value is redundant", + "4014,4019": "Initializing field by default value is redundant", + "4320,4332": "'wmp_attached' should start with an upper case letter. (Rule 'Properties')", + "4400,4405": "Initializing field by default value is redundant", + "443,448": "Initializing field by default value is redundant", + "4620,4631": "'current_ext' should start with an upper case letter. (Rule 'Properties')", + "4849,4854": "Initializing field by default value is redundant", + "5341,5344": "Redundant array creation expression", + "7246,7250": "Use 'var' keyword", + "907,909": "Convert to 'return' statement" + }, + "syntax": "Packages/C#/C#.tmLanguage", + "tab_size": 4, + "translate_tabs_to_spaces": true + }, + "translation.x": 33.0, + "translation.y": 7217.0, + "zoom_level": 1.0 + }, + "stack_index": 2, + "type": "text" + }, + { + "buffer": 2, + "file": "Assets/Wiimote/Scripts/WiimoteData/IRData.cs", "semi_transient": false, "settings": { - "buffer_size": 6569, + "buffer_size": 12282, "regions": { }, "selection": [ [ - 3052, - 3052 + 1102, + 1102 ] ], "settings": { - "syntax": "Packages/C++/C++.tmLanguage", - "translate_tabs_to_spaces": false + "oops": + { + "10972,10977": "Use 'var' keyword", + "11506,11510": "Redundant 'else' keyword", + "11655,11660": "Use 'var' keyword", + "1214,1216": "'ir' should start with an upper case letter. (Rule 'Properties')", + "1323,1326": "Convert to readonly", + "2464,2468": "Use 'var' keyword", + "3110,3113": "Redundant explicit array type specification", + "3234,3237": "Redundant explicit array type specification", + "3324,3325": "Type cast is redundant", + "3400,3401": "Type cast is redundant", + "3653,3656": "Redundant explicit array type specification", + "3835,3839": "Use 'var' keyword", + "4672,4673": "Type cast is redundant", + "4750,4751": "Type cast is redundant", + "4988,4989": "Type cast is redundant", + "5066,5067": "Type cast is redundant", + "5635,5639": "Use 'var' keyword", + "5651,5654": "Redundant array creation expression", + "5655,5659": "Redundant explicit array type specification", + "5990,5993": "Redundant explicit array type specification", + "6114,6117": "Redundant explicit array type specification", + "6204,6205": "Type cast is redundant", + "6280,6281": "Type cast is redundant", + "6372,6375": "Redundant explicit array type specification", + "6879,6884": "Use 'var' keyword", + "7238,7239": "Type cast is redundant", + "8121,8126": "Use 'var' keyword", + "8449,8465": "Convert to readonly", + "8468,8471": "Redundant array creation expression", + "8512,8528": "Convert to readonly", + "8531,8534": "Redundant array creation expression", + "8535,8538": "Redundant explicit array type specification" + }, + "syntax": "Packages/C#/C#.tmLanguage", + "tab_size": 4, + "translate_tabs_to_spaces": true }, - "translation.x": -0.0, - "translation.y": 624.0, + "translation.x": 75.0, + "translation.y": 0.0, + "zoom_level": 1.0 + }, + "stack_index": 1, + "type": "text" + }, + { + "buffer": 3, + "file": "Assets/Wiimote/Scripts/WiimoteData/AccelData.cs", + "semi_transient": false, + "settings": + { + "buffer_size": 5577, + "regions": + { + }, + "selection": + [ + [ + 600, + 600 + ] + ], + "settings": + { + "oops": + { + "0,5": "Using directive is not used by code and can be removed safely.", + "1620,1631": "Name should have prefix '_'. (Rule 'Fields').", + "3324,3325": "Type cast is redundant", + "4198,4203": "Use 'var' keyword", + "5310,5315": "Use 'var' keyword", + "751,756": "'accel' should start with an upper case letter. (Rule 'Properties')" + }, + "syntax": "Packages/C#/C#.tmLanguage", + "tab_size": 4, + "translate_tabs_to_spaces": true + }, + "translation.x": 0.0, + "translation.y": 0.0, "zoom_level": 1.0 }, "stack_index": 0, @@ -188,7 +471,7 @@ }, "output.variable_get": { - "height": 0.0 + "height": 100.0 }, "pinned_build_system": "", "project": "Unity-Wiimote.sublime-project", @@ -232,7 +515,7 @@ "show_open_files": false, "show_tabs": true, "side_bar_visible": true, - "side_bar_width": 208.0, + "side_bar_width": 279.0, "status_bar_visible": true, "template_settings": {