File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,6 @@ def _from_instance_id(cls, instance_id: int) -> Joystick:
153153 return cls (_check_p (ffi .gc (lib .SDL_JoystickFromInstanceID (instance_id ), lib .SDL_JoystickClose )))
154154
155155 def __eq__ (self , other : object ) -> bool :
156- if isinstance (other , GameController ):
157- return self == other .joystick .id
158156 if isinstance (other , Joystick ):
159157 return self .id == other .id
160158 return NotImplemented
@@ -222,8 +220,6 @@ def get_axis(self, axis: ControllerAxis) -> int:
222220 def __eq__ (self , other : object ) -> bool :
223221 if isinstance (other , GameController ):
224222 return self .joystick .id == other .joystick .id
225- if isinstance (other , Joystick ):
226- return self .joystick .id == other .id
227223 return NotImplemented
228224
229225 def __hash__ (self ) -> int :
You can’t perform that action at this time.
0 commit comments