First commit on my server, yey!

This commit is contained in:
Sebastian Bularca
2026-03-19 18:12:07 +01:00
parent 5139ec2cec
commit fedd1961a0
602 changed files with 101587 additions and 6 deletions

View 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();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: c53aaaa29bf2e4487b7d60b25cef8852

View File

@@ -0,0 +1,7 @@
using UnityEngine;
namespace Nox.Input {
[CreateAssetMenu(fileName = "DesktopInputSettings", menuName = "Nox/Database/Input/DesktopInputSettings")]
public class DesktopInputSettings : InputSettings {
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: ecb9b792fe69a479e99e8cc8603384fb

View File

@@ -0,0 +1,17 @@
using Nox.Platform;
namespace Nox.Input {
public class EditorInput : IInput {
private readonly PlatformSettings platformSettings;
public EditorInput(PlatformSettings platformSettings) {
this.platformSettings = platformSettings;
}
public void Initialize() {
platformSettings.inputSettings.inputActions = new InputSystem_Actions();
platformSettings.inputSettings.inputActions.Enable();
}
public void Tick() { }
public void Dispose() { }
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 281ee0063f3504b618326a081abfa698

View File

@@ -0,0 +1,7 @@
using UnityEngine;
namespace Nox.Input {
[CreateAssetMenu(fileName = "EditorInputSettings", menuName = "Nox/Database/Input/EditorInputSettings")]
public class EditorInputSettings : InputSettings {
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 1ab8976c2d688464da5283961853fc8a

View File

@@ -0,0 +1,7 @@
namespace Nox.Input {
public interface IInput {
void Initialize();
void Tick();
void Dispose();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 70bf93df18b346daa019505f5360777f
timeCreated: 1771155387

View File

@@ -0,0 +1,13 @@
namespace Nox.Input {
public enum InputMode {
None = 0,
Desktop = 1,
Editor = 100
}
public enum ControllerHand {
None = 0,
Right = 1,
Left = 2,
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 20ffba6f41c0140dfba203a5f37aed7b

View File

@@ -0,0 +1,8 @@
using UnityEngine;
namespace Nox.Input {
public abstract class InputSettings : ScriptableObject {
public InputMode inputMode;
public InputSystem_Actions inputActions;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 949429364244341c4b9f5afa0420ad02