@@ -43,9 +43,8 @@ public void Devices_SupportsWebGLStandardGamepads()
4343 Assert . That ( gamepad . leftTrigger . ReadUnprocessedValue ( ) , Is . EqualTo ( 0.123 ) . Within ( 0.0001 ) ) ;
4444 Assert . That ( gamepad . rightTrigger . ReadUnprocessedValue ( ) , Is . EqualTo ( 0.234 ) . Within ( 0.0001 ) ) ;
4545
46- AssertStickValues ( gamepad . leftStick , new Vector2 ( 0.345f , - 0.456f ) , - 0.456f , 0 , 0 , 0.345f ) ;
47- AssertStickValues ( gamepad . rightStick , new Vector2 ( 0.567f , - 0.678f ) , - 0.678f , 0 , 0 , 0.567f ) ;
48-
46+ AssertStickValues ( gamepad . leftStick , new Vector2 ( 0.345f , - 0.456f ) , 0 , 0.456f , 0 , 0.345f ) ;
47+ AssertStickValues ( gamepad . rightStick , new Vector2 ( 0.567f , - 0.678f ) , 0 , 0.678f , 0 , 0.567f ) ;
4948
5049 InputSystem . QueueStateEvent ( gamepad , new WebGLGamepadState
5150 {
@@ -54,9 +53,8 @@ public void Devices_SupportsWebGLStandardGamepads()
5453 } ) ;
5554 InputSystem . Update ( ) ;
5655
57- AssertStickValues ( gamepad . leftStick , new Vector2 ( - 0.345f , 0.456f ) , 0 , - 0.456f , 0.345f , 0 ) ;
58- AssertStickValues ( gamepad . rightStick , new Vector2 ( - 0.567f , 0.678f ) , 0 , - 0.678f , 0.567f , 0 ) ;
59-
56+ AssertStickValues ( gamepad . leftStick , new Vector2 ( - 0.345f , 0.456f ) , 0.456f , 0 , 0.345f , 0 ) ;
57+ AssertStickValues ( gamepad . rightStick , new Vector2 ( - 0.567f , 0.678f ) , 0.678f , 0 , 0.567f , 0 ) ;
6058
6159 // Test all buttons.
6260 AssertButtonPress ( gamepad , new WebGLGamepadState ( ) . WithButton ( GamepadButton . South ) , gamepad [ GamepadButton . South ] ) ;
0 commit comments