mirror of
https://github.com/mupen64plus/mupen64plus-ui-python.git
synced 2025-04-02 10:51:53 -04:00
Document choice of axis deadzone.
This commit is contained in:
parent
8c75194ece
commit
61d73f90d1
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ class InputButton(QPushButton):
|
|||
self.clearFocus()
|
||||
|
||||
def on_axis_value_changed(self, axis, value):
|
||||
# SDL axes range from -32768 to 32767. Only map axes which are half-pressed or more.
|
||||
if abs(value) >= 16384:
|
||||
val = "-" if value < 0 else "+"
|
||||
self.on_joystick_event("axis", axis, val)
|
||||
|
|
Loading…
Add table
Reference in a new issue