forked from Shardstone/trail-into-darkness
First commit on my server, yey!
This commit is contained in:
27
Assets/Code/Input/DesktopInput.cs
Normal file
27
Assets/Code/Input/DesktopInput.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Nox.Platform;
|
||||
|
||||
namespace Nox.Input {
|
||||
public class DesktopInput : IInput {
|
||||
private readonly PlatformSettings platformSettings;
|
||||
|
||||
public DesktopInput(PlatformSettings platformSettings) {
|
||||
this.platformSettings = platformSettings;
|
||||
}
|
||||
|
||||
public void Initialize() {
|
||||
SetupInput();
|
||||
}
|
||||
|
||||
private void SetupInput() {
|
||||
platformSettings.inputSettings.inputActions = new InputSystem_Actions();
|
||||
platformSettings.inputSettings.inputActions.Enable();
|
||||
}
|
||||
|
||||
public void Tick() { }
|
||||
|
||||
public void Dispose() {
|
||||
platformSettings.inputSettings.inputActions.Disable();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user