Esempio n. 1
0
 /// <summary>
 /// Returns true while the virtual button is held down.
 /// </summary>
 /// <returns><c>true</c>, if button is held down, <c>false</c> otherwise.</returns>
 /// <param name="button">KeyMapping instance.</param>
 /// <param name="exactKeyModifiers">If set to <c>true</c> check that only specified key modifiers are active, otherwise check that at least specified key modifiers are active.</param>
 public static bool GetButton(KeyMapping button, bool exactKeyModifiers = false)
 {
     return button.isPressed(exactKeyModifiers, mInputDevice);
 }