Exemplo n.º 1
0
    public XGamepadManager(GamepadLayout layout)
    {
        this.layout = layout;

        var currentPath = Environment.GetEnvironmentVariable("PATH",
                                                             EnvironmentVariableTarget.Process);

#if UNITY_EDITOR_32
        var dllPath = Application.dataPath
                      + Path.DirectorySeparatorChar + "SomePath"
                      + Path.DirectorySeparatorChar + "Plugins"
                      + Path.DirectorySeparatorChar + "x86";
#elif UNITY_EDITOR_64
        var dllPath = Application.dataPath
                      + '\\' + "Plugins"
                      + '\\' + "x86_64";
        Debug.Log(dllPath);
#else // Player
        var dllPath = Application.dataPath
                      + Path.DirectorySeparatorChar + "Plugins";
#endif
        if (currentPath != null && currentPath.Contains(dllPath) == false)
        {
            Environment.SetEnvironmentVariable("PATH", currentPath + Path.PathSeparator
                                               + dllPath, EnvironmentVariableTarget.Process);
        }
    }
	public XGamepadManager(GamepadLayout layout)
	{
		this.layout = layout;
		
	}
Exemplo n.º 3
0
 public XGamepadDevice(GamepadLayout layout)
 {
     _layout = layout;
     Update();
 }
Exemplo n.º 4
0
 public XGamepadManager(GamepadLayout layout)
 {
     this.layout = layout;
 }
	public XGamepadDevice(GamepadLayout layout)
	{
		_layout = layout;
		Update ();
	}