Exemple #1
0
        /** 更新。インプットシステム。ゲームパッド。パッドモーター。
         */
        private bool Main_InputSystem_GamePad_PadMotor(ref Pad_Status a_pad_status)
        {
                        #if (USE_DEF_FEE_INPUTSYSTEM)
            {
                UnityEngine_InputSystem.Gamepad t_gamepad = this.GetPadDevice(a_pad_status.pad_index);
                if (t_gamepad != null)
                {
                    float t_value_low      = a_pad_status.moter_low.GetValue();
                    float t_value_high     = a_pad_status.moter_high.GetValue();
                    float t_raw_value_low  = a_pad_status.moter_low.GetRawValue();
                    float t_raw_value_high = a_pad_status.moter_high.GetRawValue();

                    {
                        a_pad_status.moter_low.SetRawValue(t_value_low);
                        a_pad_status.moter_high.SetRawValue(t_value_high);
                        t_gamepad.SetMotorSpeeds(t_value_low, t_value_high);
                    }

                    return(true);
                }
            }
                        #endif

            return(false);
        }
Exemple #2
0
 /** [シングルトン]削除。
  */
 private void Delete()
 {
                 #if (USE_DEF_FEE_INPUTSYSTEM)
     {
         foreach (UnityEngine_InputSystem.InputDevice t_device in UnityEngine_InputSystem.InputSystem.devices)
         {
             UnityEngine_InputSystem.Gamepad t_gamepad = t_device as UnityEngine_InputSystem.Gamepad;
             if (t_gamepad != null)
             {
                 t_gamepad.SetMotorSpeeds(0.0f, 0.0f);
             }
         }
     }
                 #endif
 }