22 lines
600 B
C#
22 lines
600 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
namespace BNG {
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Convenience methods you can use with VRIF
|
|||
|
/// </summary>
|
|||
|
public static class ExtensionMethods {
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Returns true if given key is held down. Calls "InputBridge.Instance.GetControllerBindingValue(binding)"
|
|||
|
/// </summary>
|
|||
|
/// <param name="binding"></param>
|
|||
|
public static bool GetDown(this ControllerBinding binding) {
|
|||
|
return InputBridge.Instance.GetControllerBindingValue(binding);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|