libretro.drivers.rumble.dict¶
RumbleDriver implementation that tracks per-port motor strengths in a dictionary.
See also
RumbleDriverThe protocol this driver implements.
Classes
A |
|
Simulated state of a pair of rumble motors. |
- class DictRumbleDriver[source]¶
Bases:
RumbleDriverA
RumbleDriverimplementation that stores rumble state in a dictionary.- set_rumble_state(port, effect, strength)[source]¶
Set the rumble state of a controller port.
- Return type:
- self[port][source]¶
Get the state of the virtual rumble motors for a controller port.
- classmethod __new__(*args, **kwargs)¶