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.
Session.set_controller_port_device
1 parent b051f5c commit a551fc6Copy full SHA for a551fc6
CHANGELOG.md
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
27
- Add `SensorDriver.poll`.
28
- Add `SessionBuilder.with_sensor`.
29
+- Add `Session.set_controller_port_device`.
30
31
### Fixed
32
src/libretro/session.py
@@ -335,6 +335,12 @@ def reset(self) -> None:
335
336
self._core.reset()
337
338
+ def set_controller_port_device(self, port: int, device: int) -> None:
339
+ if self._is_exited or self._environment.is_shutdown:
340
+ raise CoreShutDownException()
341
+
342
+ self._core.set_controller_port_device(port, device)
343
344
345
__all__ = [
346
"Session",
0 commit comments