mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:07:39 +02:00
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:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user