From f1cfe335dce4c57778d28f0cbf0be48447b60805 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Thu, 1 Nov 2012 12:18:49 +0100 Subject: [PATCH] androidjoystick: normalize pressure and radius, according to python-for-android / API doc --- kivy/input/providers/androidjoystick.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivy/input/providers/androidjoystick.py b/kivy/input/providers/androidjoystick.py index 74a073bfa..0e0d1c816 100644 --- a/kivy/input/providers/androidjoystick.py +++ b/kivy/input/providers/androidjoystick.py @@ -68,8 +68,8 @@ class AndroidMotionEventProvider(MotionEventProvider): pressed = joy.get_button(0) x = joy.get_axis(0) * 32768. / w y = 1. - (joy.get_axis(1) * 32768. / h) - pressure = joy.get_axis(2) - radius = joy.get_axis(3) + pressure = joy.get_axis(2) / 1000. # python for android do * 1000. + radius = joy.get_axis(3) / 1000. # python for android do * 1000. # new touche ? if pressed and jid not in touches: