Update pygameControls/playstation3_controller.py
This commit is contained in:
@@ -5,8 +5,8 @@ class PlayStation3Controller(ControlsBase):
|
|||||||
self.device = joy
|
self.device = joy
|
||||||
self.instance_id: int = self.device.get_instance_id()
|
self.instance_id: int = self.device.get_instance_id()
|
||||||
self.name = self.device.get_name()
|
self.name = self.device.get_name()
|
||||||
self.connection_type = connection_type
|
|
||||||
self.guid = self.device.get_guid()
|
self.guid = self.device.get_guid()
|
||||||
|
self.connection_type = connection_type
|
||||||
self.numaxis: int = self.device.get_numaxes()
|
self.numaxis: int = self.device.get_numaxes()
|
||||||
self.axis: list = [self.device.get_axis(a) for a in range(self.numaxis)]
|
self.axis: list = [self.device.get_axis(a) for a in range(self.numaxis)]
|
||||||
self.numhats: int = self.device.get_numhats()
|
self.numhats: int = self.device.get_numhats()
|
||||||
|
Reference in New Issue
Block a user