inputsystem 高低版本兼容
This commit is contained in:
parent
a1db47ab4b
commit
0a45c4fbbd
@ -98,13 +98,13 @@ namespace AxibugEmuOnline.Client.InputDevices.ForInputSystem
|
||||
protected override Vector2 OnGetVector2<CONTROLLER>(CONTROLLER control)
|
||||
{
|
||||
var ipControl = GetInputSystemControl(control);
|
||||
return (ipControl as InputControl<Vector2>).value;
|
||||
return (ipControl as InputControl<Vector2>).ReadValue();
|
||||
}
|
||||
|
||||
protected override float OnGetFloat<CONTROLLER>(CONTROLLER control)
|
||||
{
|
||||
var ipControl = GetInputSystemControl(control);
|
||||
return (ipControl as InputControl<float>).value;
|
||||
return (ipControl as InputControl<float>).ReadValue();
|
||||
}
|
||||
|
||||
InputControl GetInputSystemControl(InputControl_C key)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user