Table of Contents

Class UnityInputService

Namespace
Luny.Unity.Services
/
Assembly
Luny.Unity.dll

Unity implementation of input service. Subscribes to InputSystem action map callbacks and raises Luny input events.

public sealed class UnityInputService : LunyInputServiceBase, ILunyInputService, ILunyEngineService
Expand Details ...
Inheritance
Object
UnityInputService
Implements
Inherited Members

Constructors

UnityInputService()

public UnityInputService()

Methods

AssignUserToLastDevice(String, Int32, ILunyObject)

public override void AssignUserToLastDevice(String userName, Int32 deviceId, ILunyObject lunyObject)

Parameters

Type Name Description
String
userName
Int32
deviceId
ILunyObject
lunyObject

EnableInputAction(String, Boolean)

public override void EnableInputAction(String actionName, Boolean enable)

Parameters

Type Name Description
String
actionName
Boolean
enable

IsUserPairedWithDevice(String, Int32)

public override Boolean IsUserPairedWithDevice(String userName, Int32 deviceId)

Parameters

Type Name Description
String
userName
Int32
deviceId

Returns

Boolean

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

Type Name Description
LunyInputUserProfile
profile
String[]
schemeNames

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

Type Name Description
String[]
schemeNames

UnassignUser(String)

public override void UnassignUser(String userName)

Parameters

Type Name Description
String
userName