File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -274,18 +274,18 @@ def direction_right(self, value):
274
274
self ._start_stop_thread ()
275
275
276
276
@property
277
- def direction_push (self ):
277
+ def direction_middle (self ):
278
278
"""
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.
282
282
283
283
Assign `None` to prevent this event from being fired.
284
284
"""
285
285
return self ._callbacks .get (DIRECTION_MIDDLE )
286
286
287
- @direction_push .setter
288
- def direction_push (self , value ):
287
+ @direction_middle .setter
288
+ def direction_middle (self , value ):
289
289
self ._callbacks [DIRECTION_MIDDLE ] = self ._wrap_callback (value )
290
290
self ._start_stop_thread ()
291
291
You can’t perform that action at this time.
0 commit comments