1
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user