pydualsense package

Submodules

pydualsense.enums module

class pydualsense.enums.ConnectionType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

BT = 0
USB = 1
ERROR = 255
class pydualsense.enums.LedOptions(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

Off = 0
PlayerLedBrightness = 1
UninterrumpableLed = 2
Both = 3
class pydualsense.enums.PulseOptions(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

Off = 0
FadeBlue = 1
FadeOut = 2
class pydualsense.enums.Brightness(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

high = 0
medium = 1
low = 2
class pydualsense.enums.PlayerID(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

PLAYER_1 = 4
PLAYER_2 = 10
PLAYER_3 = 21
PLAYER_4 = 27
ALL = 31
class pydualsense.enums.TriggerModes(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

Off = 0
Rigid = 1
Pulse = 2
Rigid_A = 33
Rigid_B = 5
Rigid_AB = 37
Pulse_A = 34
Pulse_B = 6
Pulse_AB = 38
Calibration = 252
class pydualsense.enums.BatteryState(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: IntFlag

POWER_SUPPLY_STATUS_DISCHARGING = 0
POWER_SUPPLY_STATUS_CHARGING = 1
POWER_SUPPLY_STATUS_FULL = 2
POWER_SUPPLY_STATUS_NOT_CHARGING = 11
POWER_SUPPLY_STATUS_ERROR = 15
POWER_SUPPLY_TEMP_OR_VOLTAGE_OUT_OF_RANGE = 10
POWER_SUPPLY_STATUS_UNKNOWN = 0

pydualsense.event_system module

class pydualsense.event_system.Event

Bases: object

Base class for the event driven system

initialise event system

__init__() None

initialise event system

subscribe(fn: Callable) Any

add a event subscription

Parameters:

fn (function) – _description_

unsubscribe(fn: Callable) Any

delete event subscription fn

Parameters:

fn (function) – _description_

pydualsense.hidguardian module

pydualsense.pydualsense module

Module contents