├── .gitignore ├── Android └── src │ └── com │ └── davikingcode │ └── DetectHeadset │ └── DetectHeadset.java ├── Assets ├── Plugins.meta ├── Plugins │ ├── Android.meta │ ├── Android │ │ ├── AndroidManifest.xml │ │ ├── AndroidManifest.xml.meta │ │ ├── DetectHeadset.jar │ │ └── DetectHeadset.jar.meta │ ├── DetectHeadset.cs │ ├── DetectHeadset.cs.meta │ ├── iOS.meta │ └── iOS │ │ ├── DetectHeadset.mm │ │ └── DetectHeadset.mm.meta ├── Test.cs ├── Test.cs.meta ├── scene.unity └── scene.unity.meta ├── LICENSE.MD ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NavMeshLayers.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | Library 4 | /Temp 5 | /builds 6 | *.csproj 7 | *.pidb 8 | *.sln 9 | *.userprefs 10 | *.unityproj 11 | InspectorExpandedItems.asset 12 | EditorUserBuildSettings.asset 13 | /iOS 14 | /Web 15 | *.apk 16 | Android/.* 17 | Android/AndroidManifest.xml 18 | Android/bin 19 | Android/gen 20 | Android/ic* 21 | Android/libs/android-support-v4.jar 22 | Android/pro* 23 | Android/res -------------------------------------------------------------------------------- /Android/src/com/davikingcode/DetectHeadset/DetectHeadset.java: -------------------------------------------------------------------------------- 1 | package com.davikingcode.DetectHeadset; 2 | 3 | import android.content.Context; 4 | import android.media.AudioManager; 5 | 6 | public class DetectHeadset { 7 | 8 | static AudioManager myAudioManager; 9 | 10 | public DetectHeadset(Context context) { 11 | myAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); 12 | } 13 | 14 | public boolean _Detect() 15 | { 16 | //Added validation for newer api's above 26. 17 | if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) 18 | { 19 | AudioDeviceInfo[] audioDeviceInfos = myAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS); 20 | for (int i=0;i 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidManifest.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15757bb7a302c41bcaf0011100214837 3 | timeCreated: 1462809414 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/DetectHeadset.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaVikingCode/UnityDetectHeadset/3ed040eb5abd26b3b1e114ecdd1d3aa16d67b548/Assets/Plugins/Android/DetectHeadset.jar -------------------------------------------------------------------------------- /Assets/Plugins/Android/DetectHeadset.jar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 172b9f8c4ea624a1e85486f9dc05772a 3 | timeCreated: 1462809266 4 | licenseType: Pro 5 | PluginImporter: 6 | serializedVersion: 1 7 | iconMap: {} 8 | executionOrder: {} 9 | isPreloaded: 0 10 | platformData: 11 | Any: 12 | enabled: 1 13 | settings: {} 14 | userData: 15 | assetBundleName: 16 | assetBundleVariant: 17 | -------------------------------------------------------------------------------- /Assets/Plugins/DetectHeadset.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using System.Runtime.InteropServices; 4 | 5 | public class DetectHeadset 6 | { 7 | #if UNITY_IOS && !UNITY_EDITOR 8 | [DllImport ("__Internal")] 9 | static private extern bool _Detect(); 10 | #endif 11 | 12 | static public bool CanDetect() 13 | { 14 | #if (UNITY_IOS || UNITY_ANDROID) && !UNITY_EDITOR 15 | return true; 16 | #endif 17 | 18 | return false; 19 | } 20 | 21 | static public bool Detect() 22 | { 23 | #if UNITY_IOS && !UNITY_EDITOR 24 | return _Detect(); 25 | 26 | #elif UNITY_ANDROID && !UNITY_EDITOR 27 | 28 | using (var javaUnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) 29 | { 30 | using (var currentActivity = javaUnityPlayer.GetStatic("currentActivity")) 31 | { 32 | using (var androidPlugin = new AndroidJavaObject("com.davikingcode.DetectHeadset.DetectHeadset", currentActivity)) 33 | { 34 | return androidPlugin.Call("_Detect"); 35 | } 36 | } 37 | } 38 | 39 | #else 40 | return true; 41 | #endif 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Assets/Plugins/DetectHeadset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c6671b171d4c4e25b5d059aff622902 3 | timeCreated: 1426092278 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2a93f1f980cd455cbab9dd41e929367 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/DetectHeadset.mm: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | extern "C" { 4 | 5 | bool _Detect() { 6 | 7 | AVAudioSessionRouteDescription* route = [[AVAudioSession sharedInstance] currentRoute]; 8 | 9 | for (AVAudioSessionPortDescription* desc in [route outputs]) { 10 | if ([[desc portType] isEqualToString:AVAudioSessionPortHeadphones]) 11 | return true; 12 | if ([[desc portType] isEqualToString:AVAudioSessionPortBluetoothHFP]) 13 | return true; 14 | //It was displaying this route for bluetooth wireless headphones. 15 | //Tested with Unity 2019.1 16 | if ([[desc portType] isEqualToString:AVAudioSessionPortBluetoothA2DP]) 17 | return true; 18 | } 19 | 20 | return false; 21 | 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Plugins/iOS/DetectHeadset.mm.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e3f5ee7bf88649c199be6223b90e52e 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Test.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class Test : MonoBehaviour { 5 | 6 | bool headsetConnected = false; 7 | 8 | void Start () { 9 | 10 | headsetConnected = DetectHeadset.Detect(); 11 | } 12 | 13 | void OnGUI() { 14 | 15 | GUI.Label(new Rect(10, Screen.height - 40, 500, 50), "headset connected: " + headsetConnected.ToString()); 16 | 17 | if (GUI.Button(new Rect(Screen.width - 150, 150, 150, 50), "Detect")) 18 | headsetConnected = DetectHeadset.Detect(); 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Test.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b5b95a74ba6f443f9a562935a9493b6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/scene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_Fog: 0 16 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 17 | m_FogMode: 3 18 | m_FogDensity: .00999999978 19 | m_LinearFogStart: 0 20 | m_LinearFogEnd: 300 21 | m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1} 22 | m_SkyboxMaterial: {fileID: 0} 23 | m_HaloStrength: .5 24 | m_FlareStrength: 1 25 | m_FlareFadeSpeed: 3 26 | m_HaloTexture: {fileID: 0} 27 | m_SpotCookie: {fileID: 0} 28 | m_ObjectHideFlags: 0 29 | --- !u!127 &3 30 | LevelGameManager: 31 | m_ObjectHideFlags: 0 32 | --- !u!157 &4 33 | LightmapSettings: 34 | m_ObjectHideFlags: 0 35 | m_LightProbes: {fileID: 0} 36 | m_Lightmaps: [] 37 | m_LightmapsMode: 1 38 | m_BakedColorSpace: 0 39 | m_UseDualLightmapsInForward: 0 40 | m_LightmapEditorSettings: 41 | m_Resolution: 50 42 | m_LastUsedResolution: 0 43 | m_TextureWidth: 1024 44 | m_TextureHeight: 1024 45 | m_BounceBoost: 1 46 | m_BounceIntensity: 1 47 | m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1} 48 | m_SkyLightIntensity: 0 49 | m_Quality: 0 50 | m_Bounces: 1 51 | m_FinalGatherRays: 1000 52 | m_FinalGatherContrastThreshold: .0500000007 53 | m_FinalGatherGradientThreshold: 0 54 | m_FinalGatherInterpolationPoints: 15 55 | m_AOAmount: 0 56 | m_AOMaxDistance: .100000001 57 | m_AOContrast: 1 58 | m_LODSurfaceMappingDistance: 1 59 | m_Padding: 0 60 | m_TextureCompression: 0 61 | m_LockAtlas: 0 62 | --- !u!196 &5 63 | NavMeshSettings: 64 | m_ObjectHideFlags: 0 65 | m_BuildSettings: 66 | agentRadius: .5 67 | agentHeight: 2 68 | agentSlope: 45 69 | agentClimb: .400000006 70 | ledgeDropHeight: 0 71 | maxJumpAcrossDistance: 0 72 | accuratePlacement: 0 73 | minRegionArea: 2 74 | widthInaccuracy: 16.666666 75 | heightInaccuracy: 10 76 | m_NavMesh: {fileID: 0} 77 | --- !u!1 &1471291329 78 | GameObject: 79 | m_ObjectHideFlags: 0 80 | m_PrefabParentObject: {fileID: 0} 81 | m_PrefabInternal: {fileID: 0} 82 | serializedVersion: 4 83 | m_Component: 84 | - 4: {fileID: 1471291334} 85 | - 20: {fileID: 1471291333} 86 | - 92: {fileID: 1471291332} 87 | - 124: {fileID: 1471291331} 88 | - 81: {fileID: 1471291330} 89 | - 114: {fileID: 1471291335} 90 | m_Layer: 0 91 | m_Name: Main Camera 92 | m_TagString: MainCamera 93 | m_Icon: {fileID: 0} 94 | m_NavMeshLayer: 0 95 | m_StaticEditorFlags: 0 96 | m_IsActive: 1 97 | --- !u!81 &1471291330 98 | AudioListener: 99 | m_ObjectHideFlags: 0 100 | m_PrefabParentObject: {fileID: 0} 101 | m_PrefabInternal: {fileID: 0} 102 | m_GameObject: {fileID: 1471291329} 103 | m_Enabled: 1 104 | --- !u!124 &1471291331 105 | Behaviour: 106 | m_ObjectHideFlags: 0 107 | m_PrefabParentObject: {fileID: 0} 108 | m_PrefabInternal: {fileID: 0} 109 | m_GameObject: {fileID: 1471291329} 110 | m_Enabled: 1 111 | --- !u!92 &1471291332 112 | Behaviour: 113 | m_ObjectHideFlags: 0 114 | m_PrefabParentObject: {fileID: 0} 115 | m_PrefabInternal: {fileID: 0} 116 | m_GameObject: {fileID: 1471291329} 117 | m_Enabled: 1 118 | --- !u!20 &1471291333 119 | Camera: 120 | m_ObjectHideFlags: 0 121 | m_PrefabParentObject: {fileID: 0} 122 | m_PrefabInternal: {fileID: 0} 123 | m_GameObject: {fileID: 1471291329} 124 | m_Enabled: 1 125 | serializedVersion: 2 126 | m_ClearFlags: 1 127 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 128 | m_NormalizedViewPortRect: 129 | serializedVersion: 2 130 | x: 0 131 | y: 0 132 | width: 1 133 | height: 1 134 | near clip plane: .300000012 135 | far clip plane: 1000 136 | field of view: 60 137 | orthographic: 0 138 | orthographic size: 5 139 | m_Depth: -1 140 | m_CullingMask: 141 | serializedVersion: 2 142 | m_Bits: 4294967295 143 | m_RenderingPath: -1 144 | m_TargetTexture: {fileID: 0} 145 | m_TargetDisplay: 0 146 | m_HDR: 0 147 | m_OcclusionCulling: 1 148 | m_StereoConvergence: 10 149 | m_StereoSeparation: .0219999999 150 | --- !u!4 &1471291334 151 | Transform: 152 | m_ObjectHideFlags: 0 153 | m_PrefabParentObject: {fileID: 0} 154 | m_PrefabInternal: {fileID: 0} 155 | m_GameObject: {fileID: 1471291329} 156 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 157 | m_LocalPosition: {x: 0, y: 1, z: -10} 158 | m_LocalScale: {x: 1, y: 1, z: 1} 159 | m_Children: [] 160 | m_Father: {fileID: 0} 161 | m_RootOrder: 0 162 | --- !u!114 &1471291335 163 | MonoBehaviour: 164 | m_ObjectHideFlags: 0 165 | m_PrefabParentObject: {fileID: 0} 166 | m_PrefabInternal: {fileID: 0} 167 | m_GameObject: {fileID: 1471291329} 168 | m_Enabled: 1 169 | m_EditorHideFlags: 0 170 | m_Script: {fileID: 11500000, guid: 9b5b95a74ba6f443f9a562935a9493b6, type: 3} 171 | m_Name: 172 | m_EditorClassIdentifier: 173 | -------------------------------------------------------------------------------- /Assets/scene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3d28fb1f38444b1690c477b8a232508 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /LICENSE.MD: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Da Viking Code 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | m_SpeedOfSound: 347 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_DSPBufferSize: 0 12 | m_DisableAudio: 0 13 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepVelocity: .150000006 10 | m_SleepAngularVelocity: .140000001 11 | m_MaxAngularVelocity: 7 12 | m_MinPenetrationForPenalty: .00999999978 13 | m_SolverIterationCount: 6 14 | m_RaycastsHitTriggers: 1 15 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 16 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/scene.unity 10 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_LegacyDeferred: 11 | m_Mode: 1 12 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 13 | m_AlwaysIncludedShaders: 14 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 15 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 16 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 17 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 20 | m_PreloadedShaders: [] 21 | m_LightmapStripping: 0 22 | m_LightmapKeepPlain: 1 23 | m_LightmapKeepDirCombined: 1 24 | m_LightmapKeepDirSeparate: 1 25 | m_LightmapKeepDynamic: 1 26 | m_FogStripping: 0 27 | m_FogKeepLinear: 1 28 | m_FogKeepExp: 1 29 | m_FogKeepExp2: 1 30 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: .00100000005 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: .00100000005 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: .00100000005 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: .00100000005 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left cmd 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: .00100000005 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: .00100000005 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: .100000001 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: .100000001 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: .100000001 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: .189999998 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: .189999998 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: .00100000005 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: .00100000005 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: .00100000005 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: .00100000005 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: .00100000005 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: .00100000005 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: .00100000005 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshLayers: 5 | m_ObjectHideFlags: 0 6 | Built-in Layer 0: 7 | name: Default 8 | cost: 1 9 | editType: 2 10 | Built-in Layer 1: 11 | name: Not Walkable 12 | cost: 1 13 | editType: 0 14 | Built-in Layer 2: 15 | name: Jump 16 | cost: 2 17 | editType: 2 18 | User Layer 0: 19 | name: 20 | cost: 1 21 | editType: 3 22 | User Layer 1: 23 | name: 24 | cost: 1 25 | editType: 3 26 | User Layer 2: 27 | name: 28 | cost: 1 29 | editType: 3 30 | User Layer 3: 31 | name: 32 | cost: 1 33 | editType: 3 34 | User Layer 4: 35 | name: 36 | cost: 1 37 | editType: 3 38 | User Layer 5: 39 | name: 40 | cost: 1 41 | editType: 3 42 | User Layer 6: 43 | name: 44 | cost: 1 45 | editType: 3 46 | User Layer 7: 47 | name: 48 | cost: 1 49 | editType: 3 50 | User Layer 8: 51 | name: 52 | cost: 1 53 | editType: 3 54 | User Layer 9: 55 | name: 56 | cost: 1 57 | editType: 3 58 | User Layer 10: 59 | name: 60 | cost: 1 61 | editType: 3 62 | User Layer 11: 63 | name: 64 | cost: 1 65 | editType: 3 66 | User Layer 12: 67 | name: 68 | cost: 1 69 | editType: 3 70 | User Layer 13: 71 | name: 72 | cost: 1 73 | editType: 3 74 | User Layer 14: 75 | name: 76 | cost: 1 77 | editType: 3 78 | User Layer 15: 79 | name: 80 | cost: 1 81 | editType: 3 82 | User Layer 16: 83 | name: 84 | cost: 1 85 | editType: 3 86 | User Layer 17: 87 | name: 88 | cost: 1 89 | editType: 3 90 | User Layer 18: 91 | name: 92 | cost: 1 93 | editType: 3 94 | User Layer 19: 95 | name: 96 | cost: 1 97 | editType: 3 98 | User Layer 20: 99 | name: 100 | cost: 1 101 | editType: 3 102 | User Layer 21: 103 | name: 104 | cost: 1 105 | editType: 3 106 | User Layer 22: 107 | name: 108 | cost: 1 109 | editType: 3 110 | User Layer 23: 111 | name: 112 | cost: 1 113 | editType: 3 114 | User Layer 24: 115 | name: 116 | cost: 1 117 | editType: 3 118 | User Layer 25: 119 | name: 120 | cost: 1 121 | editType: 3 122 | User Layer 26: 123 | name: 124 | cost: 1 125 | editType: 3 126 | User Layer 27: 127 | name: 128 | cost: 1 129 | editType: 3 130 | User Layer 28: 131 | name: 132 | cost: 1 133 | editType: 3 134 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshLayers: 5 | m_ObjectHideFlags: 0 6 | Built-in Layer 0: 7 | name: Default 8 | cost: 1 9 | editType: 2 10 | Built-in Layer 1: 11 | name: Not Walkable 12 | cost: 1 13 | editType: 0 14 | Built-in Layer 2: 15 | name: Jump 16 | cost: 2 17 | editType: 2 18 | User Layer 0: 19 | name: 20 | cost: 1 21 | editType: 3 22 | User Layer 1: 23 | name: 24 | cost: 1 25 | editType: 3 26 | User Layer 2: 27 | name: 28 | cost: 1 29 | editType: 3 30 | User Layer 3: 31 | name: 32 | cost: 1 33 | editType: 3 34 | User Layer 4: 35 | name: 36 | cost: 1 37 | editType: 3 38 | User Layer 5: 39 | name: 40 | cost: 1 41 | editType: 3 42 | User Layer 6: 43 | name: 44 | cost: 1 45 | editType: 3 46 | User Layer 7: 47 | name: 48 | cost: 1 49 | editType: 3 50 | User Layer 8: 51 | name: 52 | cost: 1 53 | editType: 3 54 | User Layer 9: 55 | name: 56 | cost: 1 57 | editType: 3 58 | User Layer 10: 59 | name: 60 | cost: 1 61 | editType: 3 62 | User Layer 11: 63 | name: 64 | cost: 1 65 | editType: 3 66 | User Layer 12: 67 | name: 68 | cost: 1 69 | editType: 3 70 | User Layer 13: 71 | name: 72 | cost: 1 73 | editType: 3 74 | User Layer 14: 75 | name: 76 | cost: 1 77 | editType: 3 78 | User Layer 15: 79 | name: 80 | cost: 1 81 | editType: 3 82 | User Layer 16: 83 | name: 84 | cost: 1 85 | editType: 3 86 | User Layer 17: 87 | name: 88 | cost: 1 89 | editType: 3 90 | User Layer 18: 91 | name: 92 | cost: 1 93 | editType: 3 94 | User Layer 19: 95 | name: 96 | cost: 1 97 | editType: 3 98 | User Layer 20: 99 | name: 100 | cost: 1 101 | editType: 3 102 | User Layer 21: 103 | name: 104 | cost: 1 105 | editType: 3 106 | User Layer 22: 107 | name: 108 | cost: 1 109 | editType: 3 110 | User Layer 23: 111 | name: 112 | cost: 1 113 | editType: 3 114 | User Layer 24: 115 | name: 116 | cost: 1 117 | editType: 3 118 | User Layer 25: 119 | name: 120 | cost: 1 121 | editType: 3 122 | User Layer 26: 123 | name: 124 | cost: 1 125 | editType: 3 126 | User Layer 27: 127 | name: 128 | cost: 1 129 | editType: 3 130 | User Layer 28: 131 | name: 132 | cost: 1 133 | editType: 3 134 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_BaumgarteScale: .200000003 16 | m_BaumgarteTimeOfImpactScale: .75 17 | m_TimeToSleep: .5 18 | m_LinearSleepTolerance: .00999999978 19 | m_AngularSleepTolerance: 2 20 | m_RaycastsHitTriggers: 1 21 | m_DeleteStopsCallbacks: 1 22 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 23 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 7 | AndroidProfiler: 0 8 | defaultScreenOrientation: 4 9 | targetDevice: 2 10 | useOnDemandResources: 0 11 | accelerometerFrequency: 60 12 | companyName: Da Viking Code 13 | productName: DetectHeadset 14 | defaultCursor: {fileID: 0} 15 | cursorHotspot: {x: 0, y: 0} 16 | m_ShowUnitySplashScreen: 1 17 | m_VirtualRealitySplashScreen: {fileID: 0} 18 | defaultScreenWidth: 1024 19 | defaultScreenHeight: 768 20 | defaultScreenWidthWeb: 960 21 | defaultScreenHeightWeb: 600 22 | m_RenderingPath: 1 23 | m_MobileRenderingPath: 1 24 | m_ActiveColorSpace: 0 25 | m_MTRendering: 1 26 | m_MobileMTRendering: 0 27 | m_Stereoscopic3D: 0 28 | iosShowActivityIndicatorOnLoading: -1 29 | androidShowActivityIndicatorOnLoading: -1 30 | iosAppInBackgroundBehavior: 0 31 | displayResolutionDialog: 1 32 | iosAllowHTTPDownload: 1 33 | allowedAutorotateToPortrait: 1 34 | allowedAutorotateToPortraitUpsideDown: 1 35 | allowedAutorotateToLandscapeRight: 1 36 | allowedAutorotateToLandscapeLeft: 1 37 | useOSAutorotation: 1 38 | use32BitDisplayBuffer: 1 39 | disableDepthAndStencilBuffers: 0 40 | defaultIsFullScreen: 1 41 | defaultIsNativeResolution: 1 42 | runInBackground: 0 43 | captureSingleScreen: 0 44 | Override IPod Music: 0 45 | Prepare IOS For Recording: 0 46 | submitAnalytics: 1 47 | usePlayerLog: 1 48 | bakeCollisionMeshes: 0 49 | forceSingleInstance: 0 50 | resizableWindow: 0 51 | useMacAppStoreValidation: 0 52 | gpuSkinning: 0 53 | xboxPIXTextureCapture: 0 54 | xboxEnableAvatar: 0 55 | xboxEnableKinect: 0 56 | xboxEnableKinectAutoTracking: 0 57 | xboxEnableFitness: 0 58 | visibleInBackground: 0 59 | allowFullscreenSwitch: 1 60 | macFullscreenMode: 2 61 | d3d9FullscreenMode: 1 62 | d3d11FullscreenMode: 1 63 | xboxSpeechDB: 0 64 | xboxEnableHeadOrientation: 0 65 | xboxEnableGuest: 0 66 | xboxEnablePIXSampling: 0 67 | n3dsDisableStereoscopicView: 0 68 | n3dsEnableSharedListOpt: 1 69 | n3dsEnableVSync: 0 70 | uiUse16BitDepthBuffer: 0 71 | ignoreAlphaClear: 0 72 | xboxOneResolution: 0 73 | ps3SplashScreen: {fileID: 0} 74 | videoMemoryForVertexBuffers: 0 75 | psp2PowerMode: 0 76 | psp2AcquireBGM: 1 77 | wiiUTVResolution: 0 78 | wiiUGamePadMSAA: 1 79 | wiiUSupportsNunchuk: 0 80 | wiiUSupportsClassicController: 0 81 | wiiUSupportsBalanceBoard: 0 82 | wiiUSupportsMotionPlus: 0 83 | wiiUSupportsProController: 0 84 | wiiUAllowScreenCapture: 1 85 | wiiUControllerCount: 0 86 | m_SupportedAspectRatios: 87 | 4:3: 1 88 | 5:4: 1 89 | 16:10: 1 90 | 16:9: 1 91 | Others: 1 92 | bundleIdentifier: com.davikingcode.DetectHeadset 93 | bundleVersion: 1.0 94 | preloadedAssets: [] 95 | metroEnableIndependentInputSource: 0 96 | metroEnableLowLatencyPresentationAPI: 0 97 | xboxOneDisableKinectGpuReservation: 0 98 | virtualRealitySupported: 0 99 | productGUID: 4a5a68ea626354151a879551125e556c 100 | AndroidBundleVersionCode: 1 101 | AndroidMinSdkVersion: 9 102 | AndroidPreferredInstallLocation: 1 103 | aotOptions: 104 | apiCompatibilityLevel: 2 105 | stripEngineCode: 1 106 | iPhoneStrippingLevel: 0 107 | iPhoneScriptCallOptimization: 0 108 | iPhoneBuildNumber: 0 109 | ForceInternetPermission: 0 110 | ForceSDCardPermission: 0 111 | CreateWallpaper: 0 112 | APKExpansionFiles: 0 113 | preloadShaders: 0 114 | StripUnusedMeshComponents: 0 115 | VertexChannelCompressionMask: 116 | serializedVersion: 2 117 | m_Bits: 238 118 | iPhoneSdkVersion: 988 119 | iPhoneTargetOSVersion: 22 120 | tvOSSdkVersion: 0 121 | tvOSTargetOSVersion: 900 122 | uIPrerenderedIcon: 0 123 | uIRequiresPersistentWiFi: 0 124 | uIRequiresFullScreen: 1 125 | uIStatusBarHidden: 1 126 | uIExitOnSuspend: 0 127 | uIStatusBarStyle: 0 128 | iPhoneSplashScreen: {fileID: 0} 129 | iPhoneHighResSplashScreen: {fileID: 0} 130 | iPhoneTallHighResSplashScreen: {fileID: 0} 131 | iPhone47inSplashScreen: {fileID: 0} 132 | iPhone55inPortraitSplashScreen: {fileID: 0} 133 | iPhone55inLandscapeSplashScreen: {fileID: 0} 134 | iPadPortraitSplashScreen: {fileID: 0} 135 | iPadHighResPortraitSplashScreen: {fileID: 0} 136 | iPadLandscapeSplashScreen: {fileID: 0} 137 | iPadHighResLandscapeSplashScreen: {fileID: 0} 138 | appleTVSplashScreen: {fileID: 0} 139 | tvOSSmallIconLayers: [] 140 | tvOSLargeIconLayers: [] 141 | tvOSTopShelfImageLayers: [] 142 | iOSLaunchScreenType: 0 143 | iOSLaunchScreenPortrait: {fileID: 0} 144 | iOSLaunchScreenLandscape: {fileID: 0} 145 | iOSLaunchScreenBackgroundColor: 146 | serializedVersion: 2 147 | rgba: 0 148 | iOSLaunchScreenFillPct: 1 149 | iOSLaunchScreenSize: 100 150 | iOSLaunchScreenCustomXibPath: 151 | iOSLaunchScreeniPadType: 0 152 | iOSLaunchScreeniPadImage: {fileID: 0} 153 | iOSLaunchScreeniPadBackgroundColor: 154 | serializedVersion: 2 155 | rgba: 0 156 | iOSLaunchScreeniPadFillPct: 100 157 | iOSLaunchScreeniPadSize: 100 158 | iOSLaunchScreeniPadCustomXibPath: 159 | iOSDeviceRequirements: [] 160 | AndroidTargetDevice: 0 161 | AndroidSplashScreenScale: 0 162 | androidSplashScreen: {fileID: 0} 163 | AndroidKeystoreName: 164 | AndroidKeyaliasName: 165 | AndroidTVCompatibility: 1 166 | AndroidIsGame: 1 167 | androidEnableBanner: 1 168 | m_AndroidBanners: 169 | - width: 320 170 | height: 180 171 | banner: {fileID: 0} 172 | androidGamepadSupportLevel: 0 173 | resolutionDialogBanner: {fileID: 0} 174 | m_BuildTargetIcons: 175 | - m_BuildTarget: 176 | m_Icons: 177 | - serializedVersion: 2 178 | m_Icon: {fileID: 0} 179 | m_Width: 128 180 | m_Height: 128 181 | m_BuildTargetBatching: [] 182 | m_BuildTargetGraphicsAPIs: 183 | - m_BuildTarget: AndroidPlayer 184 | m_APIs: 08000000 185 | m_Automatic: 0 186 | webPlayerTemplate: APPLICATION:Default 187 | m_TemplateCustomTags: {} 188 | wiiUTitleID: 0005000011000000 189 | wiiUGroupID: 00010000 190 | wiiUCommonSaveSize: 4096 191 | wiiUAccountSaveSize: 2048 192 | wiiUOlvAccessKey: 0 193 | wiiUTinCode: 0 194 | wiiUJoinGameId: 0 195 | wiiUJoinGameModeMask: 0000000000000000 196 | wiiUCommonBossSize: 0 197 | wiiUAccountBossSize: 0 198 | wiiUAddOnUniqueIDs: [] 199 | wiiUMainThreadStackSize: 3072 200 | wiiULoaderThreadStackSize: 1024 201 | wiiUSystemHeapSize: 128 202 | wiiUTVStartupScreen: {fileID: 0} 203 | wiiUGamePadStartupScreen: {fileID: 0} 204 | wiiUDrcBufferDisabled: 0 205 | wiiUProfilerLibPath: 206 | actionOnDotNetUnhandledException: 1 207 | enableInternalProfiler: 0 208 | logObjCUncaughtExceptions: 1 209 | enableCrashReportAPI: 0 210 | locationUsageDescription: 211 | XboxTitleId: 212 | XboxImageXexPath: 213 | XboxSpaPath: 214 | XboxGenerateSpa: 0 215 | XboxDeployKinectResources: 0 216 | XboxSplashScreen: {fileID: 0} 217 | xboxEnableSpeech: 0 218 | xboxAdditionalTitleMemorySize: 0 219 | xboxDeployKinectHeadOrientation: 0 220 | xboxDeployKinectHeadPosition: 0 221 | ps3TitleConfigPath: 222 | ps3DLCConfigPath: 223 | ps3ThumbnailPath: 224 | ps3BackgroundPath: 225 | ps3SoundPath: 226 | ps3NPAgeRating: 12 227 | ps3TrophyCommId: 228 | ps3NpCommunicationPassphrase: 229 | ps3TrophyPackagePath: 230 | ps3BootCheckMaxSaveGameSizeKB: 128 231 | ps3TrophyCommSig: 232 | ps3SaveGameSlots: 1 233 | ps3TrialMode: 0 234 | ps3VideoMemoryForAudio: 0 235 | ps3EnableVerboseMemoryStats: 0 236 | ps3UseSPUForUmbra: 0 237 | ps3EnableMoveSupport: 1 238 | ps3DisableDolbyEncoding: 0 239 | ps4NPAgeRating: 12 240 | ps4NPTitleSecret: 241 | ps4NPTrophyPackPath: 242 | ps4ParentalLevel: 1 243 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 244 | ps4Category: 0 245 | ps4MasterVersion: 01.00 246 | ps4AppVersion: 01.00 247 | ps4AppType: 0 248 | ps4ParamSfxPath: 249 | ps4VideoOutPixelFormat: 0 250 | ps4VideoOutResolution: 4 251 | ps4PronunciationXMLPath: 252 | ps4PronunciationSIGPath: 253 | ps4BackgroundImagePath: 254 | ps4StartupImagePath: 255 | ps4SaveDataImagePath: 256 | ps4SdkOverride: 257 | ps4BGMPath: 258 | ps4ShareFilePath: 259 | ps4ShareOverlayImagePath: 260 | ps4PrivacyGuardImagePath: 261 | ps4NPtitleDatPath: 262 | ps4RemotePlayKeyAssignment: -1 263 | ps4RemotePlayKeyMappingDir: 264 | ps4EnterButtonAssignment: 1 265 | ps4ApplicationParam1: 0 266 | ps4ApplicationParam2: 0 267 | ps4ApplicationParam3: 0 268 | ps4ApplicationParam4: 0 269 | ps4DownloadDataSize: 0 270 | ps4GarlicHeapSize: 2048 271 | ps4Passcode: PJ1nEdwnYcthtYDBoIziIHO2gH4Odmfs 272 | ps4UseDebugIl2cppLibs: 0 273 | ps4pnSessions: 1 274 | ps4pnPresence: 1 275 | ps4pnFriends: 1 276 | ps4pnGameCustomData: 1 277 | playerPrefsSupport: 0 278 | ps4ReprojectionSupport: 0 279 | ps4UseAudio3dBackend: 0 280 | ps4SocialScreenEnabled: 0 281 | ps4Audio3dVirtualSpeakerCount: 14 282 | ps4attribCpuUsage: 0 283 | ps4PatchPkgPath: 284 | ps4PatchLatestPkgPath: 285 | ps4PatchChangeinfoPath: 286 | ps4attribUserManagement: 0 287 | ps4attribMoveSupport: 0 288 | ps4attrib3DSupport: 0 289 | ps4attribShareSupport: 0 290 | ps4IncludedModules: [] 291 | monoEnv: 292 | psp2Splashimage: {fileID: 0} 293 | psp2NPTrophyPackPath: 294 | psp2NPSupportGBMorGJP: 0 295 | psp2NPAgeRating: 12 296 | psp2NPTitleDatPath: 297 | psp2NPCommsID: 298 | psp2NPCommunicationsID: 299 | psp2NPCommsPassphrase: 300 | psp2NPCommsSig: 301 | psp2ParamSfxPath: 302 | psp2ManualPath: 303 | psp2LiveAreaGatePath: 304 | psp2LiveAreaBackroundPath: 305 | psp2LiveAreaPath: 306 | psp2LiveAreaTrialPath: 307 | psp2PatchChangeInfoPath: 308 | psp2PatchOriginalPackage: 309 | psp2PackagePassword: WRK5RhRXdCdG5nG5azdNMK66MuCV6GXi 310 | psp2KeystoneFile: 311 | psp2MemoryExpansionMode: 0 312 | psp2DRMType: 0 313 | psp2StorageType: 0 314 | psp2MediaCapacity: 0 315 | psp2DLCConfigPath: 316 | psp2ThumbnailPath: 317 | psp2BackgroundPath: 318 | psp2SoundPath: 319 | psp2TrophyCommId: 320 | psp2TrophyPackagePath: 321 | psp2PackagedResourcesPath: 322 | psp2SaveDataQuota: 10240 323 | psp2ParentalLevel: 1 324 | psp2ShortTitle: Not Set 325 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 326 | psp2Category: 0 327 | psp2MasterVersion: 01.00 328 | psp2AppVersion: 01.00 329 | psp2TVBootMode: 0 330 | psp2EnterButtonAssignment: 2 331 | psp2TVDisableEmu: 0 332 | psp2AllowTwitterDialog: 1 333 | psp2Upgradable: 0 334 | psp2HealthWarning: 0 335 | psp2UseLibLocation: 0 336 | psp2InfoBarOnStartup: 0 337 | psp2InfoBarColor: 0 338 | psp2UseDebugIl2cppLibs: 0 339 | psmSplashimage: {fileID: 0} 340 | spritePackerPolicy: 341 | scriptingDefineSymbols: {} 342 | metroPackageName: DeviceVibration 343 | metroPackageVersion: 344 | metroCertificatePath: 345 | metroCertificatePassword: 346 | metroCertificateSubject: 347 | metroCertificateIssuer: 348 | metroCertificateNotAfter: 0000000000000000 349 | metroApplicationDescription: DeviceVibration 350 | wsaImages: {} 351 | metroTileShortName: 352 | metroCommandLineArgsFile: 353 | metroTileShowName: 0 354 | metroMediumTileShowName: 0 355 | metroLargeTileShowName: 0 356 | metroWideTileShowName: 0 357 | metroDefaultTileSize: 1 358 | metroTileForegroundText: 1 359 | metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 360 | metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 361 | metroSplashScreenUseBackgroundColor: 0 362 | platformCapabilities: {} 363 | metroFTAName: 364 | metroFTAFileTypes: [] 365 | metroProtocolName: 366 | metroCompilationOverrides: 1 367 | blackberryDeviceAddress: 368 | blackberryDevicePassword: 369 | blackberryTokenPath: 370 | blackberryTokenExires: 371 | blackberryTokenAuthor: 372 | blackberryTokenAuthorId: 373 | blackberryCskPassword: 374 | blackberrySaveLogPath: 375 | blackberrySharedPermissions: 0 376 | blackberryCameraPermissions: 0 377 | blackberryGPSPermissions: 0 378 | blackberryDeviceIDPermissions: 0 379 | blackberryMicrophonePermissions: 0 380 | blackberryGamepadSupport: 0 381 | blackberryBuildId: 0 382 | blackberryLandscapeSplashScreen: {fileID: 0} 383 | blackberryPortraitSplashScreen: {fileID: 0} 384 | blackberrySquareSplashScreen: {fileID: 0} 385 | tizenProductDescription: 386 | tizenProductURL: 387 | tizenSigningProfileName: 388 | tizenGPSPermissions: 0 389 | tizenMicrophonePermissions: 0 390 | n3dsUseExtSaveData: 0 391 | n3dsCompressStaticMem: 1 392 | n3dsExtSaveDataNumber: 0x12345 393 | n3dsStackSize: 131072 394 | n3dsTargetPlatform: 2 395 | n3dsRegion: 7 396 | n3dsMediaSize: 0 397 | n3dsLogoStyle: 3 398 | n3dsTitle: GameName 399 | n3dsProductCode: 400 | n3dsApplicationId: 0xFF3FF 401 | stvDeviceAddress: 402 | stvProductDescription: 403 | stvProductAuthor: 404 | stvProductAuthorEmail: 405 | stvProductLink: 406 | stvProductCategory: 0 407 | XboxOneProductId: 408 | XboxOneUpdateKey: 409 | XboxOneSandboxId: 410 | XboxOneContentId: 411 | XboxOneTitleId: 412 | XboxOneSCId: 413 | XboxOneGameOsOverridePath: 414 | XboxOnePackagingOverridePath: 415 | XboxOneAppManifestOverridePath: 416 | XboxOnePackageEncryption: 0 417 | XboxOnePackageUpdateGranularity: 2 418 | XboxOneDescription: 419 | XboxOneIsContentPackage: 0 420 | XboxOneEnableGPUVariability: 0 421 | XboxOneSockets: {} 422 | XboxOneSplashScreen: {fileID: 0} 423 | XboxOneAllowedProductIds: [] 424 | XboxOnePersistentLocalStorageSize: 0 425 | intPropertyNames: 426 | - Android::ScriptingBackend 427 | - Standalone::ScriptingBackend 428 | - WebGL::ScriptingBackend 429 | - WebGL::audioCompressionFormat 430 | - WebGL::exceptionSupport 431 | - WebGL::memorySize 432 | - iOS::Architecture 433 | - iOS::EnableIncrementalBuildSupportForIl2cpp 434 | - iOS::ScriptingBackend 435 | Android::ScriptingBackend: 0 436 | Standalone::ScriptingBackend: 0 437 | WebGL::ScriptingBackend: 1 438 | WebGL::audioCompressionFormat: 4 439 | WebGL::exceptionSupport: 0 440 | WebGL::memorySize: 256 441 | iOS::Architecture: 0 442 | iOS::EnableIncrementalBuildSupportForIl2cpp: 1 443 | iOS::ScriptingBackend: 0 444 | boolPropertyNames: 445 | - WebGL::analyzeBuildSize 446 | - WebGL::dataCaching 447 | - WebGL::useEmbeddedResources 448 | WebGL::analyzeBuildSize: 0 449 | WebGL::dataCaching: 0 450 | WebGL::useEmbeddedResources: 0 451 | stringPropertyNames: 452 | - WebGL::emscriptenArgs 453 | - WebGL::template 454 | - additionalIl2CppArgs::additionalIl2CppArgs 455 | WebGL::emscriptenArgs: 456 | WebGL::template: APPLICATION:Default 457 | additionalIl2CppArgs::additionalIl2CppArgs: 458 | cloudProjectId: 459 | projectName: 460 | organizationId: 461 | cloudEnabled: 0 462 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.3.4p5 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | blendWeights: 1 18 | textureQuality: 1 19 | anisotropicTextures: 0 20 | antiAliasing: 0 21 | softParticles: 0 22 | softVegetation: 0 23 | vSyncCount: 0 24 | lodBias: .300000012 25 | maximumLODLevel: 0 26 | particleRaycastBudget: 4 27 | excludedTargetPlatforms: [] 28 | - serializedVersion: 2 29 | name: Fast 30 | pixelLightCount: 0 31 | shadows: 0 32 | shadowResolution: 0 33 | shadowProjection: 1 34 | shadowCascades: 1 35 | shadowDistance: 20 36 | blendWeights: 2 37 | textureQuality: 0 38 | anisotropicTextures: 0 39 | antiAliasing: 0 40 | softParticles: 0 41 | softVegetation: 0 42 | vSyncCount: 0 43 | lodBias: .400000006 44 | maximumLODLevel: 0 45 | particleRaycastBudget: 16 46 | excludedTargetPlatforms: [] 47 | - serializedVersion: 2 48 | name: Simple 49 | pixelLightCount: 1 50 | shadows: 1 51 | shadowResolution: 0 52 | shadowProjection: 1 53 | shadowCascades: 1 54 | shadowDistance: 20 55 | blendWeights: 2 56 | textureQuality: 0 57 | anisotropicTextures: 1 58 | antiAliasing: 0 59 | softParticles: 0 60 | softVegetation: 0 61 | vSyncCount: 0 62 | lodBias: .699999988 63 | maximumLODLevel: 0 64 | particleRaycastBudget: 64 65 | excludedTargetPlatforms: [] 66 | - serializedVersion: 2 67 | name: Good 68 | pixelLightCount: 2 69 | shadows: 2 70 | shadowResolution: 1 71 | shadowProjection: 1 72 | shadowCascades: 2 73 | shadowDistance: 40 74 | blendWeights: 2 75 | textureQuality: 0 76 | anisotropicTextures: 1 77 | antiAliasing: 0 78 | softParticles: 0 79 | softVegetation: 1 80 | vSyncCount: 1 81 | lodBias: 1 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 256 84 | excludedTargetPlatforms: [] 85 | - serializedVersion: 2 86 | name: Beautiful 87 | pixelLightCount: 3 88 | shadows: 2 89 | shadowResolution: 2 90 | shadowProjection: 1 91 | shadowCascades: 2 92 | shadowDistance: 70 93 | blendWeights: 4 94 | textureQuality: 0 95 | anisotropicTextures: 2 96 | antiAliasing: 2 97 | softParticles: 1 98 | softVegetation: 1 99 | vSyncCount: 1 100 | lodBias: 1.5 101 | maximumLODLevel: 0 102 | particleRaycastBudget: 1024 103 | excludedTargetPlatforms: [] 104 | - serializedVersion: 2 105 | name: Fantastic 106 | pixelLightCount: 4 107 | shadows: 2 108 | shadowResolution: 2 109 | shadowProjection: 1 110 | shadowCascades: 4 111 | shadowDistance: 150 112 | blendWeights: 4 113 | textureQuality: 0 114 | anisotropicTextures: 2 115 | antiAliasing: 2 116 | softParticles: 1 117 | softVegetation: 1 118 | vSyncCount: 1 119 | lodBias: 2 120 | maximumLODLevel: 0 121 | particleRaycastBudget: 4096 122 | excludedTargetPlatforms: [] 123 | m_PerPlatformDefaultQuality: 124 | Android: 2 125 | BlackBerry: 2 126 | FlashPlayer: 3 127 | GLES Emulation: 3 128 | PS3: 3 129 | PS4: 3 130 | PSM: 3 131 | PSP2: 3 132 | Samsung TV: 2 133 | Standalone: 3 134 | Tizen: 2 135 | WP8: 3 136 | Web: 3 137 | Windows Store Apps: 3 138 | XBOX360: 3 139 | XboxOne: 3 140 | iPhone: 2 141 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | tags: 6 | - 7 | Builtin Layer 0: Default 8 | Builtin Layer 1: TransparentFX 9 | Builtin Layer 2: Ignore Raycast 10 | Builtin Layer 3: 11 | Builtin Layer 4: Water 12 | Builtin Layer 5: UI 13 | Builtin Layer 6: 14 | Builtin Layer 7: 15 | User Layer 8: 16 | User Layer 9: 17 | User Layer 10: 18 | User Layer 11: 19 | User Layer 12: 20 | User Layer 13: 21 | User Layer 14: 22 | User Layer 15: 23 | User Layer 16: 24 | User Layer 17: 25 | User Layer 18: 26 | User Layer 19: 27 | User Layer 20: 28 | User Layer 21: 29 | User Layer 22: 30 | User Layer 23: 31 | User Layer 24: 32 | User Layer 25: 33 | User Layer 26: 34 | User Layer 27: 35 | User Layer 28: 36 | User Layer 29: 37 | User Layer 30: 38 | User Layer 31: 39 | m_SortingLayers: 40 | - name: Default 41 | userID: 0 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!292 &1 4 | UnityAdsSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_InitializeOnStartup: 1 8 | m_TestMode: 0 9 | m_EnabledPlatforms: 4294967295 10 | m_IosGameId: 11 | m_AndroidGameId: 12 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | UnityPurchasingSettings: 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | UnityAnalyticsSettings: 10 | m_Enabled: 0 11 | m_InitializeOnStartup: 1 12 | m_TestMode: 0 13 | m_TestEventUrl: 14 | m_TestConfigUrl: 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | UnityDetectHeadset 2 | ================== 3 | 4 | UnityDetectHeadset is a [Unity native plugin](http://docs.unity3d.com/Manual/NativePlugins.html) which enable to detect if a headphone is plugged on iOS & Android. 5 | 6 | To use it, import the Plugins folder and inside your code call: `DetectHeadset.Detect();`. 7 | 8 | Note it will return **true** on *non supported platform*. 9 | 10 | For Android, you need to add permissions: 11 | `` 12 | `` 13 | 14 | **Useful references** 15 | 16 | [Create a JAR from Android Studio Project](https://stackoverflow.com/questions/21712714/how-to-make-a-jar-out-from-an-android-studio-project) 17 | 18 | [Create an android library project](https://www.vogella.com/tutorials/AndroidLibraryProjects/article.html) 19 | --------------------------------------------------------------------------------