/// <summary> /// Returns true during the frame the user pressed down the virtual button. /// </summary> /// <returns><c>true</c>, if user pressed down the button during the frame, <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 GetButtonDown(KeyMapping button, bool exactKeyModifiers = false) { return button.IsPressedDown(exactKeyModifiers, sInputDevice); }