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
Inheritance
object
UnityInputService
Implements
Inherited Members

Constructors

UnityInputService()

public UnityInputService()

Methods

AssignUserToLastDevice(string, int, ILunyObject)

public override void AssignUserToLastDevice(string userName, int deviceId, ILunyObject lunyObject)

Parameters

userName string
deviceId int
lunyObject ILunyObject

EnableInputAction(string, bool)

public override void EnableInputAction(string actionName, bool enabled)

Parameters

actionName string
enabled bool

IsUserPairedWithDevice(string, int)

public override bool IsUserPairedWithDevice(string userName, int deviceId)

Parameters

userName string
deviceId int

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

profile LunyInputUserProfile
schemeNames string[]

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

schemeNames string[]

UnassignUser(string)

public override void UnassignUser(string userName)

Parameters

userName string