Skip to content

Commit b5313ea

Browse files
committed
Changed max_stick_power to getter.
1 parent b835877 commit b5313ea

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

JoycontrolPlugin/commands.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ class JoycontrolCommands:
1313
def __init__(self, controller_state):
1414
self.cli = ControllerCLI(controller_state)
1515
self.controller_state = controller_state
16-
self.max_stick_power = MAX_STICK_POWER
16+
self.__max_stick_power = MAX_STICK_POWER
17+
18+
@property
19+
def max_stick_power(self):
20+
return self.__max_stick_power
1721

1822
def __calc_stick_position(self, angle, power):
1923
angle = (angle + 180) % 360 * -1

0 commit comments

Comments
 (0)