zero axis

This commit is contained in:
Frank 2015-07-23 16:49:04 -04:00
parent a0aba9a0bb
commit 303df733a4
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class Input(GameChild):
if not self.suppressed:
axis = event.axis
value = event.value
if not value:
if -.01 < value < .01:
for command in "up", "right", "down", "left":
self.post_command(command, cancel=True)
if command not in self.any_press_ignored: