Class UnityInputService
Unity implementation of input service. Subscribes to InputSystem action map callbacks and raises Luny input events.
public sealed class UnityInputService : LunyInputServiceBase, ILunyInputService, ILunyEngineService
- Inheritance
-
objectUnityInputService
- Implements
- Inherited Members
Constructors
UnityInputService()
public UnityInputService()
Methods
AssignUserToLastDevice(string, int, ILunyObject)
public override void AssignUserToLastDevice(string userName, int deviceId, ILunyObject lunyObject)
Parameters
userNamestringdeviceIdintlunyObjectILunyObject
EnableInputAction(string, bool)
public override void EnableInputAction(string actionName, bool enabled)
Parameters
actionNamestringenabledbool
IsUserPairedWithDevice(string, int)
public override bool IsUserPairedWithDevice(string userName, int deviceId)
Parameters
userNamestringdeviceIdint
Returns
- bool
OnServiceInitialize()
protected override void OnServiceInitialize()
OnServiceShutdown()
protected override void OnServiceShutdown()
OnServiceStartup()
protected override void OnServiceStartup()
SetControlSchemes(LunyInputUserProfile, params string[])
public void SetControlSchemes(LunyInputUserProfile profile, params string[] schemeNames)
Parameters
profileLunyInputUserProfileschemeNamesstring[]
SetControlSchemes(params string[])
Activate a given control scheme eg Gamepad or Keyboard&Mouse to prevent other device input from coming through.
public override void SetControlSchemes(params string[] schemeNames)
Parameters
schemeNamesstring[]
UnassignUser(string)
public override void UnassignUser(string userName)
Parameters
userNamestring