|
e3e24bde
|
2013-11-08T14:04:59
|
|
Make sure the joystick count is correct when the added and removed events are dispatched, in case someone is watching for them with an event filter.
|
|
e27248c2
|
2013-11-06T09:48:45
|
|
Fixes Bug 1944 - Linux events, joysticks having only hat are not read
|
|
0b7c69fe
|
2013-11-05T20:07:39
|
|
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.
|
|
b8b9bfbe
|
2013-10-21T01:16:16
|
|
Fixed some warnings building for 64-bit Windows
|
|
85c2e236
|
2013-10-20T22:23:09
|
|
Fixed Y axis inversion on iOS; positive is up, negative is down.
|
|
08fa8da7
|
2013-10-20T21:56:15
|
|
Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
Andreas Ertelt
The problem in question is caused by changeset 7771 (http://hg.libsdl.org/SDL/rev/5486e579872e / https://bugzilla.libsdl.org/show_bug.cgi?id=2121)
The redefinition of __inline__ (introduced by the addition of begin_code.h:128's "|| __STRICT_ANSI__") results in mingw's gcc throwing multiple
warning: always_inline function might not be inlinable [-Wattributes]
as well as a whole bunch of redefinitions of mingw internals which break linking of projects including the SDL2 headers.
|
|
5e74299a
|
2013-10-20T15:40:20
|
|
Fix adding of XInput devices (thanks, Mitchell!)
Partially fixes Bugzilla #2126.
|
|
7ad441a3
|
2013-10-17T23:40:13
|
|
Fixed bug 2069 - Device addition/removal queries all USB devices rather than only HID devices.
Andreas Ertelt
SDL_dxjoystick.c is setting the classguid for device (dis)connect events to USB Devices in general:
dbh.dbcc_classguid = GUID_DEVINTERFACE_USB_DEVICE;
Wouldn't it make more sense to have it just subscribe to Hid device events? This would mean less meaningless events reaching the application.
|
|
12ca3ce3
|
2013-10-17T23:02:29
|
|
Fixed building using MinGW
Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
|
|
15682c0c
|
2013-10-10T20:58:20
|
|
Report joystick added/removed events even if we don't have udev.
T. Joseph Carter
As discussed (possibly to death), the Linux joystick driver does not actually report events for added or removed joysticks when you haven't got udev support.
We simply cannot know about removed joysticks without udev. But we can (and we should) report adding them. This brings the legacy case in line with pretty much the rest of SDL's joystick drivers.
|
|
cca09422
|
2013-10-06T20:39:23
|
|
Only allocate a joystick instance ID once we know it's a joystick.
This fixes compatibility with code that assumes 0 based joystick instance IDs.
|
|
8f46bcfd
|
2013-10-06T13:49:23
|
|
Check for NULL joystick in SDL_JoystickGetGUID()
|
|
90a219a3
|
2013-10-05T21:15:55
|
|
Fixed bug where a Logitech wireless keyboard with built-in mouse touchpad didn't get recongized as both devices.
|
|
57e09318
|
2013-10-01T08:47:06
|
|
Uses SDL_UDEV for Linux joystick hotplugging
|
|
dc9ddf1f
|
2013-09-06T20:54:14
|
|
Fixed bug 2090 - Some joystick inputs are delayed on FreeBSD
kikuchan
Some joysticks with high sampling rate need to be read() more fast,
otherwise it delay user inputs due to internal queue.
Especially, an app that issues SDL_PollEvent() not so frequent
|
|
f06eeb01
|
2013-09-05T15:49:57
|
|
Fix to buffer overrun in SDL_JoystickGetGUIDString().
|
|
f79fc33a
|
2013-08-29T08:29:21
|
|
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
|
|
257cef30
|
2013-08-28T22:09:17
|
|
Change order we enumerate Windows joysticks.
Make it so XInput devices are listed before DirectInput devices, and that the XInput
devices are sorted by userid in ascending numeric order (so device 0 comes first).
|
|
ea4350d8
|
2013-08-28T22:07:54
|
|
Don't corrupt XInput device state during SDL_SYS_JoystickClose().
|
|
aa652114
|
2013-08-28T17:17:21
|
|
Make XInput joystick names match the numbers on the device.
(And how the Haptic code already names them.)
|
|
4b255c63
|
2013-08-28T16:43:47
|
|
Reworked XInput and DirectInput joystick code.
Now multiple XInput controllers map correctly to device indexes instead of grabbing
the first available userid, and are completely separated out from DirectInput.
Also, the hardcoded limitation on number of DirectInput devices is gone. I don't
expect there to really ever be more than eight joysticks plugged into a machine, but
it was a leftover limitation for a static array we didn't actually use anymore.
Fixes Bugzilla #1984. (etc?)
|
|
c89e0469
|
2013-08-28T16:35:32
|
|
Better XInput detection code for DirectInput device enumeration.
This code is way faster than the Wbem code, and less ugly.
|
|
cd27a1ef
|
2013-08-21T12:12:04
|
|
Fixed compiling on old versions of the DirectX SDK
|
|
9faefccd
|
2013-08-21T10:32:04
|
|
SDL
- detect that you tried to open a gamecontroller in xinput mode and failed, then re-get the mapping for the dinput variant you did open (and most likely now just fail the open)
CR: SamL
|
|
05d8c2dc
|
2013-08-21T10:31:44
|
|
Fix SDL xinput code to work at all when xinput has devices at high indexes but no device connected at lower index, for instance 0->disconnected, 1->wireles, 2->wired. Previously the SDL code assumed the indexes were always used up in order which is not true at all and lead to a bunch of failure cases where controllers would go unrecognized.
This entire function is kind of a mess and more complicated than needed, but I don't want to refactor it too heavily tonight. May look at improving how the indexes are assigned more significanly later. The way it handles not finding a valid "gamepad" type device is also super broken, it leaves in place the xinput bindings but opens the controller with dinput and ends up with completely wrong mappings, not solving that now, but fixing the bug where we'd very frequently not find a controller due to gaps in assigned player numbers should mostly avoid it.
|
|
5f8de2b9
|
2013-08-21T10:27:39
|
|
Patched to compile on Darwin
|
|
695344d1
|
2013-08-21T09:43:09
|
|
OCD fixes: Adds a space before */
|
|
552b04c5
|
2013-08-20T20:34:40
|
|
More non C89 compliant comments
|
|
63fe3a77
|
2013-08-20T19:49:24
|
|
Fixes a few non C89 compliant comments
|
|
dad42067
|
2013-08-12T11:13:50
|
|
Fixes #2022, do not resume on Android when surfaceChanged
If the app is in landscape mode and the user presses the power button, a pause
is followed immediately by a surfaceChanged event because the lock screen
is shown in portrait mode. This triggers a "false" resume.
So, we just pause and resume following the onWindowFocusChanged events.
Also, wait for SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERBACKGROUND before
blocking the event pump.
|