コード例 #1
0
 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();
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Acitve up selection.
 /// </summary>
 /// <returns></returns>
 private bool ActiveLeft()
 {
     return(JCS_Input.GetKeyByAction(mKeyActionType, mMLeft, mIgnoreGamePause) ||
            JCS_Input.GetJoystickKeyByAction(mKeyActionType, mGamePadId, mJLeft, mIgnoreGamePause));
 }