heavy rework of our input system

- implement the InputController abstract class, an adapter class for any HID interface to use common controller methods relevant to Heaven Studio
- implement InputKeyboard and InputJoyshock classes, for keyboard input and controllers driven by JoyShockLibrary respectively
- add Linux compile of JoyShockLibrary
This commit is contained in:
minenice55
2022-07-23 20:36:10 -04:00
parent 6699e7d98b
commit ecbe84074f
19 changed files with 1009 additions and 337 deletions

View File

@ -198,7 +198,7 @@ namespace HeavenStudio
// LateUpdate works a bit better(?) but causes some bugs (like issues with bop animations).
private void Update()
{
PlayerInput.UpdateJoyShocks();
PlayerInput.UpdateInputControllers();
if (BeatmapEntities() < 1) //bruh really you forgot to ckeck tempo changes
return;
@ -528,12 +528,5 @@ namespace HeavenStudio
{
HeavenStudio.GameCamera.ResetAdditionalTransforms();
}
void OnApplicationQuit()
{
Debug.Log("Disconnecting JoyShocks...");
JSL.JslSetCallback(null);
JSL.JslDisconnectAndDisposeAll();
}
}
}