mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
further cleanup of repo
This commit is contained in:
parent
4f8dcb0cd0
commit
323eb92f2e
140 changed files with 1 additions and 2430 deletions
|
@ -0,0 +1,25 @@
|
|||
using ABI_RC.Systems.InputManagement;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NAK.ChatBoxExtensions.InputModules;
|
||||
|
||||
internal class InputModuleChatBoxExtensions : CVRInputModule
|
||||
{
|
||||
public bool jump = false;
|
||||
public float emote = -1;
|
||||
public Vector2 lookVector = Vector2.zero;
|
||||
public Vector3 movementVector = Vector3.zero;
|
||||
|
||||
public override void UpdateInput()
|
||||
{
|
||||
CVRInputManager.Instance.jump |= jump;
|
||||
CVRInputManager.Instance.movementVector += movementVector;
|
||||
CVRInputManager.Instance.lookVector += lookVector;
|
||||
if (emote > 0) CVRInputManager.Instance.emote = emote;
|
||||
|
||||
jump = false;
|
||||
emote = -1;
|
||||
lookVector = Vector3.zero;
|
||||
movementVector = Vector3.zero;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue