コード例 #1
0
		/// <summary>
		/// <para> Enumerate currently connected controllers</para>
		/// <para> handlesOut should point to a STEAM_CONTROLLER_MAX_COUNT sized array of ControllerHandle_t handles</para>
		/// <para> Returns the number of handles written to handlesOut</para>
		/// </summary>
		public static int GetConnectedControllers(ControllerHandle_t[] handlesOut) {
			InteropHelp.TestIfAvailableClient();
			if (handlesOut.Length != Constants.STEAM_CONTROLLER_MAX_COUNT) {
				throw new ArgumentException("handlesOut must be the same size as Constants.STEAM_CONTROLLER_MAX_COUNT!");
			}
			return NativeMethods.ISteamController_GetConnectedControllers(handlesOut);
		}
コード例 #2
0
 internal void TriggerHapticPulse(ControllerHandle_t controllerHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec)
 {
     _TriggerHapticPulse(Self, controllerHandle, eTargetPad, usDurationMicroSec);
 }
コード例 #3
0
		public static extern int ISteamController_GetAnalogActionOrigins(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, [In, Out] EControllerActionOrigin[] originsOut);
コード例 #4
0
		public static extern void ISteamController_ActivateActionSet(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle);
コード例 #5
0
		/// <summary>
		/// <para> Reconfigure the controller to use the specified action set (ie 'Menu', 'Walk' or 'Drive')</para>
		/// <para> This is cheap, and can be safely called repeatedly. It's often easier to repeatedly call it in</para>
		/// <para> your state loops, instead of trying to place it in all of your state transitions.</para>
		/// </summary>
		public static void ActivateActionSet(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_ActivateActionSet(controllerHandle, actionSetHandle);
		}
コード例 #6
0
		public static void StopAnalogActionMomentum(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_StopAnalogActionMomentum(controllerHandle, eAction);
		}
コード例 #7
0
		public static extern ControllerMotionData_t ISteamController_GetMotionData(ControllerHandle_t controllerHandle);
コード例 #8
0
 public static ControllerActionSetHandle_t GetCurrentActionSet(ControllerHandle_t controllerHandle)
 {
     InteropHelp.TestIfAvailableClient();
     return((ControllerActionSetHandle_t)NativeMethods.ISteamController_GetCurrentActionSet(controllerHandle));
 }
コード例 #9
0
 internal void SetLEDColor(ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags)
 {
     _SetLEDColor(Self, controllerHandle, nColorR, nColorG, nColorB, nFlags);
 }
コード例 #10
0
 private static extern void _SetLEDColor(IntPtr self, ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags);
コード例 #11
0
 internal void TriggerVibration(ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed)
 {
     _TriggerVibration(Self, controllerHandle, usLeftSpeed, usRightSpeed);
 }
コード例 #12
0
 private static extern void _TriggerVibration(IntPtr self, ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed);
コード例 #13
0
 internal void TriggerRepeatedHapticPulse(ControllerHandle_t controllerHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags)
 {
     _TriggerRepeatedHapticPulse(Self, controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
 }
コード例 #14
0
 private static extern void _TriggerRepeatedHapticPulse(IntPtr self, ControllerHandle_t controllerHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags);
コード例 #15
0
 /// <summary>
 /// <para> Trigger a haptic pulse on a controller</para>
 /// </summary>
 public static void TriggerHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamController_TriggerHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec);
 }
コード例 #16
0
 /// <summary>
 /// <para> Invokes the Steam overlay and brings up the binding screen</para>
 /// <para> Returns false is overlay is disabled / unavailable, or the user is not in Big Picture mode</para>
 /// </summary>
 public static bool ShowBindingPanel(ControllerHandle_t controllerHandle)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamController_ShowBindingPanel(controllerHandle));
 }
コード例 #17
0
 private static extern bool _ShowBindingPanel(IntPtr self, ControllerHandle_t controllerHandle);
コード例 #18
0
		public static extern void ISteamController_SetLEDColor(ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags);
コード例 #19
0
        internal bool ShowBindingPanel(ControllerHandle_t controllerHandle)
        {
            var returnValue = _ShowBindingPanel(Self, controllerHandle);

            return(returnValue);
        }
コード例 #20
0
		public static extern bool ISteamController_ShowAnalogActionOrigins(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition);
コード例 #21
0
 private static extern InputType _GetInputTypeForHandle(IntPtr self, ControllerHandle_t controllerHandle);
コード例 #22
0
		/// <summary>
		/// <para> Enumerate currently connected controllers</para>
		/// <para> handlesOut should point to a STEAM_CONTROLLER_MAX_COUNT sized array of ControllerHandle_t handles</para>
		/// <para> Returns the number of handles written to handlesOut</para>
		/// </summary>
		public static int GetConnectedControllers(ControllerHandle_t[] handlesOut) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_GetConnectedControllers(handlesOut);
		}
コード例 #23
0
        internal InputType GetInputTypeForHandle(ControllerHandle_t controllerHandle)
        {
            var returnValue = _GetInputTypeForHandle(Self, controllerHandle);

            return(returnValue);
        }
コード例 #24
0
		/// <summary>
		/// <para> Returns the current state of the supplied digital game action</para>
		/// </summary>
		public static ControllerDigitalActionData_t GetDigitalActionData(ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_GetDigitalActionData(controllerHandle, digitalActionHandle);
		}
コード例 #25
0
 private static extern int _GetGamepadIndexForController(IntPtr self, ControllerHandle_t ulControllerHandle);
コード例 #26
0
		public static extern ControllerDigitalActionData_t ISteamController_GetDigitalActionData(ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle);
コード例 #27
0
        internal int GetGamepadIndexForController(ControllerHandle_t ulControllerHandle)
        {
            var returnValue = _GetGamepadIndexForController(Self, ulControllerHandle);

            return(returnValue);
        }
コード例 #28
0
		public static extern void ISteamController_TriggerHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec);
コード例 #29
0
 private static extern ControllerActionOrigin _GetActionOriginFromXboxOrigin(IntPtr self, ControllerHandle_t controllerHandle, XboxOrigin eOrigin);
コード例 #30
0
 public static void StopAnalogActionMomentum(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamController_StopAnalogActionMomentum(controllerHandle, eAction);
 }
コード例 #31
0
        internal ControllerActionOrigin GetActionOriginFromXboxOrigin(ControllerHandle_t controllerHandle, XboxOrigin eOrigin)
        {
            var returnValue = _GetActionOriginFromXboxOrigin(Self, controllerHandle, eOrigin);

            return(returnValue);
        }
コード例 #32
0
 public static void TriggerRepeatedHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamController_TriggerRepeatedHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
 }
コード例 #33
0
 private static extern bool _GetControllerBindingRevision(IntPtr self, ControllerHandle_t controllerHandle, ref int pMajor, ref int pMinor);
コード例 #34
0
 /// <summary>
 /// <para> Reconfigure the controller to use the specified action set (ie 'Menu', 'Walk' or 'Drive')</para>
 /// <para> This is cheap, and can be safely called repeatedly. It's often easier to repeatedly call it in</para>
 /// <para> your state loops, instead of trying to place it in all of your state transitions.</para>
 /// </summary>
 public static void ActivateActionSet(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle)
 {
     InteropHelp.TestIfAvailableClient();
     NativeMethods.ISteamController_ActivateActionSet(controllerHandle, actionSetHandle);
 }
コード例 #35
0
        internal bool GetControllerBindingRevision(ControllerHandle_t controllerHandle, ref int pMajor, ref int pMinor)
        {
            var returnValue = _GetControllerBindingRevision(Self, controllerHandle, ref pMajor, ref pMinor);

            return(returnValue);
        }
コード例 #36
0
		public static extern void ISteamController_TriggerVibration(ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed);
コード例 #37
0
 private static extern void _ActivateActionSet(IntPtr self, ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle);
コード例 #38
0
		public static extern int ISteamController_GetGamepadIndexForController(ControllerHandle_t ulControllerHandle);
コード例 #39
0
 internal void ActivateActionSet(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle)
 {
     _ActivateActionSet(Self, controllerHandle, actionSetHandle);
 }
コード例 #40
0
		public static extern bool ISteamController_ShowDigitalActionOrigins(ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle, float flScale, float flXPosition, float flYPosition);
コード例 #41
0
 private static extern ControllerActionSetHandle_t _GetCurrentActionSet(IntPtr self, ControllerHandle_t controllerHandle);
コード例 #42
0
		/// <summary>
		/// <para> Get the origin(s) for an analog action within an action set. Returns the number of origins supplied in originsOut. Use this to display the appropriate on-screen prompt for the action.</para>
		/// <para> originsOut should point to a STEAM_CONTROLLER_MAX_ORIGINS sized array of EControllerActionOrigin handles</para>
		/// </summary>
		public static int GetAnalogActionOrigins(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin[] originsOut) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, originsOut);
		}
コード例 #43
0
        internal ControllerActionSetHandle_t GetCurrentActionSet(ControllerHandle_t controllerHandle)
        {
            var returnValue = _GetCurrentActionSet(Self, controllerHandle);

            return(returnValue);
        }
コード例 #44
0
		/// <summary>
		/// <para> Trigger a haptic pulse on a controller</para>
		/// </summary>
		public static void TriggerHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_TriggerHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec);
		}
コード例 #45
0
		/// <summary>
		/// <para> Tigger a vibration event on supported controllers.</para>
		/// </summary>
		public static void TriggerVibration(ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_TriggerVibration(controllerHandle, usLeftSpeed, usRightSpeed);
		}
コード例 #46
0
		/// <summary>
		/// <para> Invokes the Steam overlay and brings up the binding screen</para>
		/// <para> Returns false is overlay is disabled / unavailable, or the user is not in Big Picture mode</para>
		/// </summary>
		public static bool ShowBindingPanel(ControllerHandle_t controllerHandle) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_ShowBindingPanel(controllerHandle);
		}
コード例 #47
0
		/// <summary>
		/// <para> Set the controller LED color on supported controllers.</para>
		/// </summary>
		public static void SetLEDColor(ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_SetLEDColor(controllerHandle, nColorR, nColorG, nColorB, nFlags);
		}
コード例 #48
0
		public static ControllerActionSetHandle_t GetCurrentActionSet(ControllerHandle_t controllerHandle) {
			InteropHelp.TestIfAvailableClient();
			return (ControllerActionSetHandle_t)NativeMethods.ISteamController_GetCurrentActionSet(controllerHandle);
		}
コード例 #49
0
		/// <summary>
		/// <para> Returns the associated gamepad index for the specified controller, if emulating a gamepad</para>
		/// </summary>
		public static int GetGamepadIndexForController(ControllerHandle_t ulControllerHandle) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_GetGamepadIndexForController(ulControllerHandle);
		}
コード例 #50
0
		public static extern bool ISteamController_ShowBindingPanel(ControllerHandle_t controllerHandle);
コード例 #51
0
		public static bool ShowAnalogActionOrigins(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition) {
			InteropHelp.TestIfAvailableClient();
			return NativeMethods.ISteamController_ShowAnalogActionOrigins(controllerHandle, analogActionHandle, flScale, flXPosition, flYPosition);
		}
コード例 #52
0
		public static extern ulong ISteamController_GetCurrentActionSet(ControllerHandle_t controllerHandle);
コード例 #53
0
		public static void TriggerRepeatedHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags) {
			InteropHelp.TestIfAvailableClient();
			NativeMethods.ISteamController_TriggerRepeatedHapticPulse(controllerHandle, eTargetPad, usDurationMicroSec, usOffMicroSec, unRepeat, nFlags);
		}
コード例 #54
0
		public static extern ControllerAnalogActionData_t ISteamController_GetAnalogActionData(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle);
コード例 #55
0
 /// <summary>
 /// <para> Returns the current state of these supplied analog game action</para>
 /// </summary>
 public static ControllerAnalogActionData_t GetAnalogActionData(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamController_GetAnalogActionData(controllerHandle, analogActionHandle));
 }
コード例 #56
0
		public static extern void ISteamController_StopAnalogActionMomentum(ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction);
コード例 #57
0
 /// <summary>
 /// <para> Get the origin(s) for an analog action within an action set. Returns the number of origins supplied in originsOut. Use this to display the appropriate on-screen prompt for the action.</para>
 /// <para> originsOut should point to a STEAM_CONTROLLER_MAX_ORIGINS sized array of EControllerActionOrigin handles</para>
 /// </summary>
 public static int GetAnalogActionOrigins(ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin[] originsOut)
 {
     InteropHelp.TestIfAvailableClient();
     return(NativeMethods.ISteamController_GetAnalogActionOrigins(controllerHandle, actionSetHandle, analogActionHandle, originsOut));
 }
コード例 #58
0
		public static extern void ISteamController_TriggerRepeatedHapticPulse(ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags);
コード例 #59
0
 private static extern void _TriggerHapticPulse(IntPtr self, ControllerHandle_t controllerHandle, SteamControllerPad eTargetPad, ushort usDurationMicroSec);