We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b8388f commit 8ce4b7eCopy full SHA for 8ce4b7e
1 file changed
tcod/sdl/joystick.py
@@ -153,8 +153,6 @@ def _from_instance_id(cls, instance_id: int) -> Joystick:
153
return cls(_check_p(ffi.gc(lib.SDL_JoystickFromInstanceID(instance_id), lib.SDL_JoystickClose)))
154
155
def __eq__(self, other: object) -> bool:
156
- if isinstance(other, GameController):
157
- return self == other.joystick.id
158
if isinstance(other, Joystick):
159
return self.id == other.id
160
return NotImplemented
@@ -222,8 +220,6 @@ def get_axis(self, axis: ControllerAxis) -> int:
222
220
223
221
if isinstance(other, GameController):
224
return self.joystick.id == other.joystick.id
225
- if isinstance(other, Joystick):
226
- return self.joystick.id == other.id
227
228
229
def __hash__(self) -> int:
0 commit comments