kc3-lang/SDL/src/joystick

Branch :


Log

Author Commit Date CI Message
46740a5a 2013-11-28 22:09:21 WinRT: merged with latest SDL 2.x/HG code SDL 2.x recently accepted patches to enable OpenGL ES 2 support via Google's ANGLE library. The thought is to try to eventually merge SDL/WinRT's OpenGL code with SDL-official's.
dee48135 2013-11-27 10:29:43 Added alternative XBox 360 controller GUID on Linux Leszek Godlewski As described in the other thread (http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-November/091997.html), I've run into a case of SDL2 not recognizing a wireless Xbox 360 controller receiver properly on Debian Linux amd64 testing. Apparently, the generated GUID is slightly different. Device in question: Bus 001 Device 015: ID 045e:0291 Microsoft Corp. Xbox 360 Wireless Receiver for Windows
2aa4974b 2013-11-23 18:29:36 Removed include of no more needed header.
7a18a674 2013-11-23 09:47:25 [Android] Fixes #2264, handle joystick open/closed state properly
fdfea4ad 2013-11-19 10:00:05 [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.
3cba7997 2013-11-18 23:43:15 Fixed unreachable return statement warning in gamecontroller source.
b5c68111 2013-11-18 23:38:59 Fixed implicit function declaration warning in joystick source for Android.
00003e8c 2013-11-14 11:51:24 Renamed things named after BeOS to be named after Haiku instead.
45a88b6a 2013-11-11 10:15:35 [Android] Fixes bug 2217, better joystick axes handling on Android.
b30e396b 2013-11-10 17:56:07 Fixed bug 1965 - Mac: dead code for supporting OS 10.4 Alex Szpakowski The new patch removes all the truly obsolete code I could find. I tested on OS 10.8 and OS 10.5.
d21640e9 2013-11-10 20:13:27 Fixes bugs #2213 and #2214, improves the Android joystick code button handling
0ab7624c 2013-11-10 14:47:05 Changed function to return -1 through SDL_Error() instead of plain -1.
82b3e7d2 2013-11-10 14:44:50 Changed function to be static. The function keycode_to_SDL() is only used in this file.
6e3558cf 2013-11-10 14:42:41 Removed unused local variable to fix warning.
33cf925c 2013-11-09 01:08:21 Fixed signed/unsigned warning
7c7a9b7f 2013-11-08 14:05:19 Added a Linux game controller mapping for the Valve Streaming Gamepad
e3e24bde 2013-11-08 14: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-06 09:48:45 Fixes Bug 1944 - Linux events, joysticks having only hat are not read
0b7c69fe 2013-11-05 20: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.
69c5d21d 2013-10-27 21:26:46 WinRT: merged with SDL 2.0.1 codebase
b8b9bfbe 2013-10-21 01:16:16 Fixed some warnings building for 64-bit Windows
85c2e236 2013-10-20 22:23:09 Fixed Y axis inversion on iOS; positive is up, negative is down.
08fa8da7 2013-10-20 21: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-20 15:40:20 Fix adding of XInput devices (thanks, Mitchell!) Partially fixes Bugzilla #2126.
7ad441a3 2013-10-17 23: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-17 23:02:29 Fixed building using MinGW Our SDL_windows.h needed to be included before anything else so UNICODE is defined.
15682c0c 2013-10-10 20: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-06 20: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-06 13:49:23 Check for NULL joystick in SDL_JoystickGetGUID()
90a219a3 2013-10-05 21:15:55 Fixed bug where a Logitech wireless keyboard with built-in mouse touchpad didn't get recongized as both devices.
57e09318 2013-10-01 08:47:06 Uses SDL_UDEV for Linux joystick hotplugging
dc9ddf1f 2013-09-06 20: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-05 15:49:57 Fix to buffer overrun in SDL_JoystickGetGUIDString().
f79fc33a 2013-08-29 08:29:21 Christoph Mallon: Remove pointless if (x) before SDL_free(x)
257cef30 2013-08-28 22: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-28 22:07:54 Don't corrupt XInput device state during SDL_SYS_JoystickClose().
aa652114 2013-08-28 17:17:21 Make XInput joystick names match the numbers on the device. (And how the Haptic code already names them.)
4b255c63 2013-08-28 16: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-28 16:35:32 Better XInput detection code for DirectInput device enumeration. This code is way faster than the Wbem code, and less ugly.
f860141a 2013-08-27 12:33:36 WinRT: renamed "windowsrt" directories to "winrt"
cd27a1ef 2013-08-21 12:12:04 Fixed compiling on old versions of the DirectX SDK
9faefccd 2013-08-21 10: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-21 10: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-21 10:27:39 Patched to compile on Darwin
695344d1 2013-08-21 09:43:09 OCD fixes: Adds a space before */
552b04c5 2013-08-20 20:34:40 More non C89 compliant comments
63fe3a77 2013-08-20 19:49:24 Fixes a few non C89 compliant comments
d41fdc94 2013-08-13 20:09:52 WinRT: build fixes and additional WinRT-related integrations with SDL 2.0.0
f7049b93 2013-08-12 22:29:55 WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d4ce48ff30d1)
dad42067 2013-08-12 11: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.
1ad936eb 2013-08-11 19:56:43 Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow() Rainer Deyke I'm running Linux Mint 15 with the Cinnamon window manager. SDL_DestroyWindow consistently locks up for me when the window if fullscreen.