|
def | __init__ (self) |
|
def | cleanup_device (self) |
|
def | control (self, led_red=None, led_green=None, led_blue=None, rumble_small=None, rumble_big=None, flash_on=None, flash_off=None) |
|
def | exit (self) |
|
def | fire_event (self, event, args) |
|
def | read_report (self) |
|
def | run (self) |
|
def | setup_device (self, device) |
|
Definition at line 9 of file controller.py.
def ds4_driver.controller.Controller.__init__ |
( |
|
self | ) |
|
def ds4_driver.controller.Controller._control |
( |
|
self, |
|
|
|
kwargs |
|
) |
| |
|
private |
def ds4_driver.controller.Controller.cleanup_device |
( |
|
self | ) |
|
def ds4_driver.controller.Controller.control |
( |
|
self, |
|
|
|
led_red = None , |
|
|
|
led_green = None , |
|
|
|
led_blue = None , |
|
|
|
rumble_small = None , |
|
|
|
rumble_big = None , |
|
|
|
flash_on = None , |
|
|
|
flash_off = None |
|
) |
| |
Similar to DS4Device.control but with None as default values
:param led_red:
:param led_green:
:param led_blue:
:param rumble_small:
:param rumble_big:
:param flash_on:
:param flash_off:
:return:
Definition at line 67 of file controller.py.
def ds4_driver.controller.Controller.exit |
( |
|
self | ) |
|
def ds4_driver.controller.Controller.fire_event |
( |
|
self, |
|
|
|
event, |
|
|
|
args |
|
) |
| |
def ds4_driver.controller.Controller.get_imu_data |
( |
|
report | ) |
|
|
static |
Sets the correct IMU data in the report
See: https://github.com/chrippa/ds4drv/pull/168
:param report:
:return:
Definition at line 103 of file controller.py.
def ds4_driver.controller.Controller.read_report |
( |
|
self | ) |
|
def ds4_driver.controller.Controller.run |
( |
|
self | ) |
|
def ds4_driver.controller.Controller.setup_device |
( |
|
self, |
|
|
|
device |
|
) |
| |
ds4_driver.controller.Controller._led |
|
private |
ds4_driver.controller.Controller._led_flash |
|
private |
int ds4_driver.controller.Controller.BATTERY_FULL_CHARGING = 11 |
|
static |
int ds4_driver.controller.Controller.BATTERY_MAX = 8 |
|
static |
ds4_driver.controller.Controller.device |
ds4_driver.controller.Controller.loop |
float ds4_driver.controller.Controller.MAX_VOLTAGE = 3.65 |
|
static |
int ds4_driver.controller.Controller.TOUCHPAD_MAX_X = 1919 |
|
static |
int ds4_driver.controller.Controller.TOUCHPAD_MAX_Y = 942 |
|
static |
The documentation for this class was generated from the following file: