Update pygameControls/xbox_360_controller.py
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from pygameControls.controlsbase import ControlsBase
|
||||
from enums import ConnectionType
|
||||
from enums import ConnectionType, InputType
|
||||
import pygame
|
||||
|
||||
class Xbox360Controller(ControlsBase):
|
||||
@@ -9,6 +9,7 @@ class Xbox360Controller(ControlsBase):
|
||||
self.name = self.device.get_name()
|
||||
self.guid = self.device.get_guid()
|
||||
self.connection_type = ConnectionType(connection_type.values())
|
||||
self.input_type = InputType.XInput
|
||||
self.numaxis: int = self.device.get_numaxes()
|
||||
self.axis: list = [self.device.get_axis(a) for a in range(self.numaxis)]
|
||||
self.numhats: int = self.device.get_numhats()
|
||||
|
Reference in New Issue
Block a user