Метод | Описание | |
---|---|---|
ActivateActionSet ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle ) : void |
Reconfigure the controller to use the specified action set (ie 'Menu', 'Walk' or 'Drive') This is cheap, and can be safely called repeatedly. It's often easier to repeatedly call it in your state loops, instead of trying to place it in all of your state transitions.
|
|
GetActionSetHandle ( string pszActionSetName ) : ControllerActionSetHandle_t |
ACTION SETS Lookup the handle for an Action Set. Best to do this once on startup, and store the handles for all future API calls.
|
|
GetAnalogActionData ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle ) : |
Returns the current state of these supplied analog game action
|
|
GetAnalogActionHandle ( string pszActionName ) : ControllerAnalogActionHandle_t |
Lookup the handle for an analog action. Best to do this once on startup, and store the handles for all future API calls.
|
|
GetAnalogActionOrigins ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin originsOut ) : int |
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. originsOut should point to a STEAM_CONTROLLER_MAX_ORIGINS sized array of EControllerActionOrigin handles
|
|
GetConnectedControllers ( ControllerHandle_t handlesOut ) : int |
Enumerate currently connected controllers handlesOut should point to a STEAM_CONTROLLER_MAX_COUNT sized array of ControllerHandle_t handles Returns the number of handles written to handlesOut
|
|
GetControllerForGamepadIndex ( int nIndex ) : ControllerHandle_t |
Returns the associated controller handle for the specified emulated gamepad
|
|
GetCurrentActionSet ( ControllerHandle_t controllerHandle ) : ControllerActionSetHandle_t | ||
GetDigitalActionData ( ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle ) : |
Returns the current state of the supplied digital game action
|
|
GetDigitalActionHandle ( string pszActionName ) : ControllerDigitalActionHandle_t |
ACTIONS Lookup the handle for a digital action. Best to do this once on startup, and store the handles for all future API calls.
|
|
GetDigitalActionOrigins ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin originsOut ) : int |
Get the origin(s) for a digital 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. originsOut should point to a STEAM_CONTROLLER_MAX_ORIGINS sized array of EControllerActionOrigin handles
|
|
GetGamepadIndexForController ( ControllerHandle_t ulControllerHandle ) : int |
Returns the associated gamepad index for the specified controller, if emulating a gamepad
|
|
GetGlyphForActionOrigin ( EControllerActionOrigin eOrigin ) : string |
Get a local path to art for on-screen glyph for a particular origin
|
|
GetMotionData ( ControllerHandle_t controllerHandle ) : |
Returns raw motion data from the specified controller
|
|
GetStringForActionOrigin ( EControllerActionOrigin eOrigin ) : string |
Returns a localized string (from Steam's language setting) for the specified origin
|
|
Init ( ) : bool |
Init and Shutdown must be called when starting/ending use of this interface
|
|
RunFrame ( ) : void |
Synchronize API state with the latest Steam Controller inputs available. This is performed automatically by SteamAPI_RunCallbacks, but for the absolute lowest possible latency, you call this directly before reading controller state.
|
|
SetLEDColor ( ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags ) : void |
Set the controller LED color on supported controllers.
|
|
ShowAnalogActionOrigins ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition ) : bool | ||
ShowBindingPanel ( ControllerHandle_t controllerHandle ) : bool |
Invokes the Steam overlay and brings up the binding screen Returns false is overlay is disabled / unavailable, or the user is not in Big Picture mode
|
|
ShowDigitalActionOrigins ( ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle, float flScale, float flXPosition, float flYPosition ) : bool |
Attempt to display origins of given action in the controller HUD, for the currently active action set Returns false is overlay is disabled / unavailable, or the user is not in Big Picture mode
|
|
Shutdown ( ) : bool | ||
StopAnalogActionMomentum ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction ) : void | ||
TriggerHapticPulse ( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec ) : void |
Trigger a haptic pulse on a controller
|
|
TriggerRepeatedHapticPulse ( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags ) : void |
Trigger a pulse with a duty cycle of usDurationMicroSec / usOffMicroSec, unRepeat times. nFlags is currently unused and reserved for future use.
|
|
TriggerVibration ( ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed ) : void |
Tigger a vibration event on supported controllers.
|
public static ActivateActionSet ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle ) : void | ||
controllerHandle | ControllerHandle_t | |
actionSetHandle | ControllerActionSetHandle_t | |
Результат | void |
public static GetActionSetHandle ( string pszActionSetName ) : ControllerActionSetHandle_t | ||
pszActionSetName | string | |
Результат | ControllerActionSetHandle_t |
public static GetAnalogActionData ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle ) : |
||
controllerHandle | ControllerHandle_t | |
analogActionHandle | ControllerAnalogActionHandle_t | |
Результат |
public static GetAnalogActionHandle ( string pszActionName ) : ControllerAnalogActionHandle_t | ||
pszActionName | string | |
Результат | ControllerAnalogActionHandle_t |
public static GetAnalogActionOrigins ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerAnalogActionHandle_t analogActionHandle, EControllerActionOrigin originsOut ) : int | ||
controllerHandle | ControllerHandle_t | |
actionSetHandle | ControllerActionSetHandle_t | |
analogActionHandle | ControllerAnalogActionHandle_t | |
originsOut | EControllerActionOrigin | |
Результат | int |
public static GetConnectedControllers ( ControllerHandle_t handlesOut ) : int | ||
handlesOut | ControllerHandle_t | |
Результат | int |
public static GetControllerForGamepadIndex ( int nIndex ) : ControllerHandle_t | ||
nIndex | int | |
Результат | ControllerHandle_t |
public static GetCurrentActionSet ( ControllerHandle_t controllerHandle ) : ControllerActionSetHandle_t | ||
controllerHandle | ControllerHandle_t | |
Результат | ControllerActionSetHandle_t |
public static GetDigitalActionData ( ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle ) : |
||
controllerHandle | ControllerHandle_t | |
digitalActionHandle | ControllerDigitalActionHandle_t | |
Результат |
public static GetDigitalActionHandle ( string pszActionName ) : ControllerDigitalActionHandle_t | ||
pszActionName | string | |
Результат | ControllerDigitalActionHandle_t |
public static GetDigitalActionOrigins ( ControllerHandle_t controllerHandle, ControllerActionSetHandle_t actionSetHandle, ControllerDigitalActionHandle_t digitalActionHandle, EControllerActionOrigin originsOut ) : int | ||
controllerHandle | ControllerHandle_t | |
actionSetHandle | ControllerActionSetHandle_t | |
digitalActionHandle | ControllerDigitalActionHandle_t | |
originsOut | EControllerActionOrigin | |
Результат | int |
public static GetGamepadIndexForController ( ControllerHandle_t ulControllerHandle ) : int | ||
ulControllerHandle | ControllerHandle_t | |
Результат | int |
public static GetGlyphForActionOrigin ( EControllerActionOrigin eOrigin ) : string | ||
eOrigin | EControllerActionOrigin | |
Результат | string |
public static GetMotionData ( ControllerHandle_t controllerHandle ) : |
||
controllerHandle | ControllerHandle_t | |
Результат |
public static GetStringForActionOrigin ( EControllerActionOrigin eOrigin ) : string | ||
eOrigin | EControllerActionOrigin | |
Результат | string |
public static SetLEDColor ( ControllerHandle_t controllerHandle, byte nColorR, byte nColorG, byte nColorB, uint nFlags ) : void | ||
controllerHandle | ControllerHandle_t | |
nColorR | byte | |
nColorG | byte | |
nColorB | byte | |
nFlags | uint | |
Результат | void |
public static ShowAnalogActionOrigins ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t analogActionHandle, float flScale, float flXPosition, float flYPosition ) : bool | ||
controllerHandle | ControllerHandle_t | |
analogActionHandle | ControllerAnalogActionHandle_t | |
flScale | float | |
flXPosition | float | |
flYPosition | float | |
Результат | bool |
public static ShowBindingPanel ( ControllerHandle_t controllerHandle ) : bool | ||
controllerHandle | ControllerHandle_t | |
Результат | bool |
public static ShowDigitalActionOrigins ( ControllerHandle_t controllerHandle, ControllerDigitalActionHandle_t digitalActionHandle, float flScale, float flXPosition, float flYPosition ) : bool | ||
controllerHandle | ControllerHandle_t | |
digitalActionHandle | ControllerDigitalActionHandle_t | |
flScale | float | |
flXPosition | float | |
flYPosition | float | |
Результат | bool |
public static StopAnalogActionMomentum ( ControllerHandle_t controllerHandle, ControllerAnalogActionHandle_t eAction ) : void | ||
controllerHandle | ControllerHandle_t | |
eAction | ControllerAnalogActionHandle_t | |
Результат | void |
public static TriggerHapticPulse ( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec ) : void | ||
controllerHandle | ControllerHandle_t | |
eTargetPad | ESteamControllerPad | |
usDurationMicroSec | ushort | |
Результат | void |
public static TriggerRepeatedHapticPulse ( ControllerHandle_t controllerHandle, ESteamControllerPad eTargetPad, ushort usDurationMicroSec, ushort usOffMicroSec, ushort unRepeat, uint nFlags ) : void | ||
controllerHandle | ControllerHandle_t | |
eTargetPad | ESteamControllerPad | |
usDurationMicroSec | ushort | |
usOffMicroSec | ushort | |
unRepeat | ushort | |
nFlags | uint | |
Результат | void |
public static TriggerVibration ( ControllerHandle_t controllerHandle, ushort usLeftSpeed, ushort usRightSpeed ) : void | ||
controllerHandle | ControllerHandle_t | |
usLeftSpeed | ushort | |
usRightSpeed | ushort | |
Результат | void |