Ryujinx-SDL/src/events
ulatekh ec58a817ef Fixes made in response to running a static code analyzer under MS Windows.
Most of these are probably harmless, but the changes to SDL_immdevice.c and SDL_pixels.c appear to have fixed genuine bugs.

SDL_audiocvt.c: By separating the calculation of the divisor, I got rid of the suspicion that dividing a double by an integer led to loss of precision.
SDL_immdevice.c: Added a missing test, one that could have otherwise led to dereferencing a null pointer.
SDL_events.c, SDL_gamecontroller.c, SDL_joystick.c, SDL_malloc.c, SDL_video.c: Made it clear the return values weren't used.
SDL_hidapi_shield.c: The size is zero, so nothing bad would have happened, but the SDL_memset() was still being given an address outside of the array's range.
SDL_dinputjoystick.c: Initialize local data, just in case IDirectInputDevice8_GetProperty() isn't guaranteed to write to it.
SDL_render_sw.c: drawstate.viewport could be null (as seen on line 691).
SDL.c: SDL_MostSignificantBitIndex32() could return -1, though I don't know if you want to cope with that (what I did) or SDL_assert() that it can't happen.
SDL_hints.c: Replaced boolean tests on pointer values with comparisons to NULL.
SDL_pixels.c: Looks like the switch is genuinely missing a break!
SDL_rect_impl.h: The MacOS static checker pointed out issues with the X comparisons that were handled by assertions; I added assertions for the Y comparisons.
SDL_yuv.c, SDL_windowskeyboard.c, SDL_windowswindow.c: Checked error-result returns.
2022-11-16 12:43:20 -05:00
..
blank_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
default_cursor.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
imKStoUCS.c wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h on-screen keyboard newline is reported as an Enter key 2022-07-01 09:17:30 -07:00
scancodes_darwin.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
scancodes_linux.h Added documentation for some scancodes 2022-10-14 06:33:38 -07:00
scancodes_windows.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
scancodes_xfree86.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_clipboardevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_clipboardevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_displayevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dropevents.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_events_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_events.c Fixes made in response to running a static code analyzer under MS Windows. 2022-11-16 12:43:20 -05:00
SDL_gesture_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_gesture.c Added SDL_copyp to avoid size mismatch when copying values (thanks @1bsyl!) 2022-06-17 10:22:28 -07:00
SDL_keyboard_c.h events: Add a helper function to get the default keycode for a scancode 2022-11-15 11:00:39 -08:00
SDL_keyboard.c events: Add a helper function to get the default keycode for a scancode 2022-11-15 11:00:39 -08:00
SDL_keysym_to_scancode_c.h wayland: Handle virtual keyboards that don't fit the X mapping 2022-11-15 11:00:39 -08:00
SDL_keysym_to_scancode.c Fixed building without xkbcommon support 2022-11-15 11:39:06 -08:00
SDL_mouse_c.h wayland: Cleanup work to aid reconnect support 2022-10-29 22:41:42 -04:00
SDL_mouse.c wayland: Cleanup work to aid reconnect support 2022-10-29 22:41:42 -04:00
SDL_quit.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_scancode_tables_c.h X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_scancode_tables.c X11 scancode mapping cleanup 2022-10-13 22:41:47 -07:00
SDL_touch_c.h Fixed bug #2032: add SDL_GetTouchName to expose the driver name of the device (Thanks @mgerhardy!) 2022-02-08 11:32:20 +01:00
SDL_touch.c Vita: add hint to select which touchpad generates mouse events 2022-03-28 08:36:32 -07:00
SDL_windowevents_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_windowevents.c events: Don't lose window RESIZED events during SIZED_CHANGED processing. 2022-07-31 22:10:45 -04:00