mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 14:48:02 +03:00
Add overloads of Get...ActionOrigins() with an action set argument
This commit is contained in:
parent
6152e81168
commit
90528d01a0
@ -88,7 +88,7 @@ namespace Steamworks
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return an array of all origins mapped to the provided analog action
|
/// Return an array of all origins mapped to the provided analog action in the current action set
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static InputActionOrigin[] GetAnalogActionOrigins( Controller controller, string action )
|
public static InputActionOrigin[] GetAnalogActionOrigins( Controller controller, string action )
|
||||||
@ -105,6 +105,24 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Return an array of all origins mapped to the provided analog action in the specified action set
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static InputActionOrigin[] GetAnalogActionOrigins( Controller controller, string actionSet, string action )
|
||||||
|
{
|
||||||
|
InputActionOrigin[] origins = new InputActionOrigin[STEAM_INPUT_MAX_ORIGINS];
|
||||||
|
|
||||||
|
Internal.GetAnalogActionOrigins(
|
||||||
|
controller.Handle,
|
||||||
|
Internal.GetActionSetHandle(actionSet),
|
||||||
|
GetAnalogActionHandle( action ),
|
||||||
|
ref origins[0]
|
||||||
|
);
|
||||||
|
return origins;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return an absolute path to the PNG image glyph for the provided digital action name. The current
|
/// Return an absolute path to the PNG image glyph for the provided digital action name. The current
|
||||||
/// action set in use for the controller will be used for the lookup. You should cache the result and
|
/// action set in use for the controller will be used for the lookup. You should cache the result and
|
||||||
@ -130,7 +148,7 @@ namespace Steamworks
|
|||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return an array of all origins mapped to the provided digital action
|
/// Return an array of all origins mapped to the provided digital action in the current action set
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static InputActionOrigin[] GetDigitalActionOrigins( Controller controller, string action )
|
public static InputActionOrigin[] GetDigitalActionOrigins( Controller controller, string action )
|
||||||
@ -147,6 +165,24 @@ namespace Steamworks
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Return an array of all origins mapped to the provided action set and digital action
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static InputActionOrigin[] GetDigitalActionOrigins( Controller controller, string actionSet, string action )
|
||||||
|
{
|
||||||
|
InputActionOrigin[] origins = new InputActionOrigin[STEAM_INPUT_MAX_ORIGINS];
|
||||||
|
|
||||||
|
Internal.GetDigitalActionOrigins(
|
||||||
|
controller.Handle,
|
||||||
|
Internal.GetActionSetHandle( actionSet ),
|
||||||
|
GetDigitalActionHandle( action ),
|
||||||
|
ref origins[0]
|
||||||
|
);
|
||||||
|
return origins;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Return an absolute path to the PNG image glyph for the provided digital action name. The current
|
/// Return an absolute path to the PNG image glyph for the provided digital action name. The current
|
||||||
/// action set in use for the controller will be used for the lookup. You should cache the result and
|
/// action set in use for the controller will be used for the lookup. You should cache the result and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user