public bool IsControlUp(DeviceState state) { return((key != null && state.keyboard.IsKeyUp(key.GetValueOrDefault())) || (button != null && state.gamepad.IsButtonUp(button.GetValueOrDefault())) || (mouse != null && !MouseHelper.ButtonClicked(state.mouse, mouse.GetValueOrDefault()))); }