Skip to content

Commit 86b0317

Browse files
authored
direction_push -> direction_middle
1 parent a673812 commit 86b0317

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sense_hat/stick.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -274,18 +274,18 @@ def direction_right(self, value):
274274
self._start_stop_thread()
275275

276276
@property
277-
def direction_push(self):
277+
def direction_middle(self):
278278
"""
279-
The function to be called when the joystick is pressed. The function
280-
can either take a parameter which will be the `InputEvent` tuple that
281-
has occurred, or the function can take no parameters at all.
279+
The function to be called when the joystick middle click is pressed. The
280+
function can either take a parameter which will be the `InputEvent` tuple
281+
that has occurred, or the function can take no parameters at all.
282282
283283
Assign `None` to prevent this event from being fired.
284284
"""
285285
return self._callbacks.get(DIRECTION_MIDDLE)
286286

287-
@direction_push.setter
288-
def direction_push(self, value):
287+
@direction_middle.setter
288+
def direction_middle(self, value):
289289
self._callbacks[DIRECTION_MIDDLE] = self._wrap_callback(value)
290290
self._start_stop_thread()
291291

0 commit comments

Comments
 (0)