public bool GetButton(AEROWAND_BUTTONS button) { ButtonState buttonState; buttonDictionary.TryGetValue(button, out buttonState); return(buttonState.down); }
public bool GetButtonUp(AEROWAND_BUTTONS button) { ButtonState buttonState; buttonDictionary.TryGetValue(button, out buttonState); return(!buttonState.down && buttonState.lastFrameDown); }