SDL/src/events
Sam Lantinga c699f3d1d8 Updated SDL high DPI support
We have gotten feedback that abstracting the coordinate system based on the display scale is unexpected and it is difficult to adapt existing applications to the proposed API.

The new approach is to provide the coordinate systems that people expect, but provide additional information that will help applications properly handle high DPI situations.

The concepts needed for high DPI support are documented in README-highdpi.md. An example of automatically adapting the content to display scale changes can be found in SDL_test_common.c, where auto_scale_content is checked.

Also, the SDL_WINDOW_ALLOW_HIGHDPI window flag has been replaced by the SDL_HINT_VIDEO_ENABLE_HIGH_PIXEL_DENSITY hint.

Fixes https://github.com/libsdl-org/SDL/issues/7709
2023-05-17 12:58:00 -07:00
..
blank_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
default_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
imKStoUCS.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_darwin.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_linux.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_windows.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_xfree86.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_clipboardevents.c wayland: Add support for images in clipboard. 2023-05-12 07:54:56 -07:00
SDL_clipboardevents_c.h wayland: Add support for images in clipboard. 2023-05-12 07:54:56 -07:00
SDL_displayevents.c Added SDL_EVENT_DISPLAY_SCALE_CHANGED 2023-03-03 11:16:31 -08:00
SDL_displayevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_dropevents.c Add Drag and drop position, for x11, wayland and MACOSX 2023-03-06 08:44:05 -08:00
SDL_dropevents_c.h Add Drag and drop position, for x11, wayland and MACOSX 2023-03-06 08:44:05 -08:00
SDL_events.c Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
SDL_events_c.h Added SDL_GetSystemTheme() to return whether the system is using a dark or light color theme, and SDL_EVENT_SYSTEM_THEME_CHANGED is sent when this changes 2023-03-09 03:25:20 -08:00
SDL_keyboard.c Fixed build 2023-03-03 09:49:48 -08:00
SDL_keyboard_c.h Make sure the window is valid in SDL_SetKeyboardFocus() 2023-03-03 09:09:11 -08:00
SDL_keysym_to_scancode.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_keysym_to_scancode_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_mouse.c Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_mouse_c.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_quit.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_scancode_tables.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_scancode_tables_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_touch.c Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_touch_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_windowevents.c events: Emit an event when a window is destroyed 2023-04-28 15:09:47 -04:00
SDL_windowevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00