From 4635e72dd5cbb43c904f649e849225f257cabcd3 Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Mon, 13 Jul 2015 20:34:03 +0300 Subject: [PATCH] Updated readme --- readme.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 234029b5b..2a5f4ac79 100644 --- a/readme.txt +++ b/readme.txt @@ -260,7 +260,8 @@ scaled from -32767 to 32767, denoting the device tilt angles from the horizontal Raw accelerometer events are sent with event.jaxis.axis from 5 to 7, with Earth gravity having a value 9800. You will need to set AppUsesAccelerometer=y in AndroidAppSettings.cfg, and call SDL_JoystickOpen(1) in your code. Gyroscope events are sent as SDL_JOYAXISMOTION, with event.jaxis.which == 1 and event.jaxis.axis from 2 to 4, -with value 32767 equal to 0.25 rad/s. You will need to set AppUsesGyroscope=y in AndroidAppSettings.cfg to use it. +with value 32767 equal to 0.25 rad/s. Multiple events will be sent at once, if the device is rapidly rotated. +You will need to set AppUsesGyroscope=y in AndroidAppSettings.cfg to use it, and call SDL_JoystickOpen(1). Gyroscope hardware is much more precise and less noisy than accelerometer, it is present on newer devices starting from Galaxy S II, but older devices do no have it - it is emulated with accelerometer + compass. SDL also supports gamepad - you can plug PS3/Xbox gamepad to almost any tablet, some devices have built-in gamepad.