Philipp Wiesemann
7297902ce0
Fixed unused local variable warning in joystick source for Android.
2013-12-24 20:00:58 +01:00
Philipp Wiesemann
9da82d88f2
Fixed implicit declaration of SDL_Log() warning in joystick source for Android.
2013-12-24 19:59:35 +01:00
Gabriel Jacobo
99198c8c9f
[Android] Poll joysticks every three seconds
2013-12-12 14:55:33 -03:00
Gabriel Jacobo
ae184f5e89
[Android] Hotplugging support for joysticks
2013-12-10 16:24:11 -03:00
Philipp Wiesemann
8106c1a455
Removed include of no more needed header.
2013-11-23 18:29:36 +01:00
Gabriel Jacobo
23434404ae
[Android] Fixes #2264 , handle joystick open/closed state properly
2013-11-23 09:47:25 -03:00
Gabriel Jacobo
c68f34799d
[Android] Try to improve handling of DPAD|GAMEPAD + KEYBOARD devices
...
It seems some devices report themselves as DPAD or GAMEPAD and KEYBOARD as well,
and we need to route different keycodes to different parts of SDL.
2013-11-19 10:00:05 -03:00
Philipp Wiesemann
6917b0dbe5
Fixed implicit function declaration warning in joystick source for Android.
2013-11-18 23:38:59 +01:00
Gabriel Jacobo
a2cdc5c163
[Android] Fixes bug 2217, better joystick axes handling on Android.
2013-11-11 10:15:35 -03:00
Gabriel Jacobo
90cd003e2a
Fixes bugs #2213 and #2214 , improves the Android joystick code button handling
2013-11-10 20:13:27 -03:00
Philipp Wiesemann
99684031ac
Changed function to return -1 through SDL_Error() instead of plain -1.
2013-11-10 14:47:05 +01:00
Philipp Wiesemann
3cf636ad92
Changed function to be static.
...
The function keycode_to_SDL() is only used in this file.
2013-11-10 14:44:50 +01:00
Philipp Wiesemann
1659944a67
Removed unused local variable to fix warning.
2013-11-10 14:42:41 +01:00
Gabriel Jacobo
7075ece4a5
Adds Joystick support for Android
...
This bumps the build SDK level to 12 (up from 10). Runtime requirements remain
the same (at API level < 12 joystick support is disabled).
Also enables building SDL for armv7 and x86.
2013-11-05 20:07:39 -03:00
Sam Lantinga
0cb6385637
File style cleanup for the SDL 2.0 release
2013-05-18 14:17:52 -07:00
Gabriel Jacobo
b39dd8c4e3
Backed out changeset: a500a9dbfb41
2013-04-01 13:21:23 -03:00
Sam Lantinga
3f660cc9ad
Removed old file from the Android build
2013-03-19 23:24:24 -07:00
Sam Lantinga
95dcfa4c28
Happy New Year!
2013-02-15 08:47:44 -08:00
Sam Lantinga
5f53c47559
Fixed joystick GUID renaming for other platforms
2012-12-11 12:16:28 -08:00
Sam Lantinga
03e08a6a79
Organized joystick hotplug code a bit.
...
Cleaned up names, return types, etc.
2012-11-27 00:58:12 -08:00
Sam Lantinga
3f29ebe82f
Return an error if the joystick index isn't 0 on Android
2012-11-26 22:09:34 -08:00
Sam Lantinga
c6918ae961
Fixed building joystick code on Android
2012-11-26 22:02:01 -08:00
Sam Lantinga
f380ecb137
Removed executable bit from source files
2012-09-27 14:35:28 -07:00
Sam Lantinga
40c6294290
Fixed bug 1368 - Enabling joystick subsystem cause an infinite loop
...
morgan.devel@gmail.com 2012-01-13 00:32:23 PST
The android version of SDL_SYS_JoystickUpdate doesn't check if there is
actually new data and always generate the SDL_JOYAXISMOTION event.
Consequently, doing a while(SDL_PollEvent()) will result in an endless loop.
The attached patch fix this issue.
It also scale the incoming values properly in the Sint16 range. The scale from
[-gravity;+gravity] is done directly in the java part because one may want to
map the sensor values with a non-linear method for example.
2012-01-13 20:57:35 -05:00
Sam Lantinga
028e5dcdbd
Happy New Year!
2011-12-31 09:28:07 -05:00
Sam Lantinga
b0660ba5ff
SDL 1.3 is now under the zlib license.
2011-04-08 13:03:26 -07:00
Sam Lantinga
e5803d148c
Happy 2011! :)
2011-02-11 22:37:15 -08:00
Sam Lantinga
b4497865bd
Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
...
I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
--HG--
rename : src/SDL_android.cpp => src/core/android/SDL_android.cpp
rename : src/SDL_android.h => src/core/android/SDL_android.h
2011-01-24 21:20:30 -08:00
Sam Lantinga
70c916a415
Cleaned up internal accelerometer interface
2011-01-13 18:03:56 -08:00
Paul Hunkin
9ac4bd2a17
Added accelerometer 'joystick'
2010-07-27 21:20:17 +02:00