This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -228,7 +228,8 @@ namespace BITKit
private void OnView(InputAction.CallbackContext context)
{
if (allowInput.OnCheck() is false) return;
if (allowInput is { Allow: false }) return;
var playerConfig = PlayerConfig.Singleton;
var sensitivity = playerConfig.Sensitivity * playerConfig.M_Yaw;
var delta = context.ReadValue<Vector2>();
@@ -266,6 +267,7 @@ namespace BITKit
{
try
{
if (allowInput is { Allow: false }) return;
BITAppForUnity.ThrowIfWindowNotFocus();
switch (context.control.device)
{
@@ -309,6 +311,8 @@ namespace BITKit
private void OnEntry(InputAction.CallbackContext context)
{
if (allowInput is { Allow: false }) return;
if (context.started)
{
var delta = viewAction.action.ReadValue<Vector2>();
@@ -323,6 +327,8 @@ namespace BITKit
private void OnMovement(InputAction.CallbackContext context)
{
if (allowInput is { Allow: false }) return;
switch (context.control.device)
{
case Mouse mouse: