protected virtual void Update() { if (mListenToAnyKey) { if (JCS_Input.IsAnyKeyBuffer(mKeyActionType, mIgnorePauseCheck)) { ButtonClick(); PlayButtonClickSound(); } } else { if (// listen to keyboard. JCS_Input.GetKeyByAction(mKeyActionType, mKKeyToListen, mIgnorePauseCheck) || // listen to game pad. JCS_Input.GetJoystickKeyByAction(mKeyActionType, mJoystickLitener, mJKeyToListen, mIgnorePauseCheck)) { ButtonClick(); PlayButtonClickSound(); } } }
/// <summary> /// Acitve up selection. /// </summary> /// <returns></returns> private bool ActiveLeft() { return(JCS_Input.GetKeyByAction(mKeyActionType, mMLeft, mIgnoreGamePause) || JCS_Input.GetJoystickKeyByAction(mKeyActionType, mGamePadId, mJLeft, mIgnoreGamePause)); }