@@ -1134,7 +1134,8 @@ public static bool HasButtonPress(this InputEventPtr eventPtr, float magnitude =
11341134 /// in the devices state memory. For example, in the gamepad state, button north (bit position 4) will be evaluated before button
11351135 /// east (bit position 5), so if both buttons were pressed in the given event, button north would be returned.
11361136 /// Note that the function returns null if the <paramref name="eventPtr"/> is not a StateEvent or DeltaStateEvent.</remarks>
1137- public static unsafe InputControl GetFirstButtonPressOrNull ( this InputEventPtr eventPtr , float magnitude = - 1 , bool buttonControlsOnly = true )
1137+ public static unsafe InputControl GetFirstButtonPressOrNull ( this InputEventPtr eventPtr , float magnitude = - 1 ,
1138+ bool buttonControlsOnly = true )
11381139 {
11391140 if ( eventPtr . type != StateEvent . Type && eventPtr . type != DeltaStateEvent . Type )
11401141 return null ;
@@ -1150,8 +1151,9 @@ public static unsafe InputControl GetFirstButtonPressOrNull(this InputEventPtr e
11501151 // default (not pressed) before this event.
11511152 var stateInEvent = control . GetStatePtrFromStateEvent ( eventPtr ) ;
11521153 var currentState = control . currentStatePtr ;
1153- if ( stateInEvent != null ? ! control . CompareValue ( currentState , stateInEvent )
1154- : control . CompareValue ( currentState , control . defaultStatePtr ) )
1154+ if ( stateInEvent != null
1155+ ? ! control . CompareValue ( currentState , stateInEvent )
1156+ : control . CompareValue ( currentState , control . defaultStatePtr ) )
11551157 continue ;
11561158 if ( buttonControlsOnly && ! control . isButton )
11571159 continue ;
0 commit comments