Skip to content

Commit 709a482

Browse files
committed
Add doc comments to DictRumbleDriver
1 parent 6049956 commit 709a482

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libretro/drivers/rumble/dict.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def _set_rumble_state(self, port: int, effect: RumbleEffect, strength: int) -> b
5757
return True
5858

5959
def __getitem__(self, port: int) -> RumbleState:
60+
"""
61+
Gets the state of the virtual rumble motors for a controller port.
62+
63+
:param port: The controller port to get the rumble state for.
64+
:return: The rumble state for the controller port.
65+
"""
6066
match self._rumble_state.get(port, None):
6167
case RumbleState(strong=strong, weak=weak):
6268
return RumbleState(strong, weak)

0 commit comments

Comments
 (0)