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/MacOS/hidapi new file mode 100755 index 0000000..9f6ab9f Binary files /dev/null and b/Assets/Wiimote/Plugins/mac/hidapi.bundle/Contents/MacOS/hidapi differ 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 55fa7c3..0000000 Binary files a/Assets/Wiimote/Plugins/mac/libhidapi.dylib and /dev/null differ 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": {