Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add SDL_TouchDeviceType enum and SDL_GetTouchDeviceType(SDL_TouchID id).
Touch device types include SDL_TOUCH_DEVICE_DIRECT (a touch screen with window-relative coordinates for touches), SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE (a trackpad-style device with absolute device coordinates), and SDL_TOUCH_DEVICE_INDIRECT_RELATIVE (a trackpad-style device with screen cursor-relative coordinates). Phone screens are an example of a direct device type. Mac trackpads are the indirect-absolute touch device type. The Apple TV remote is an indirect-relative touch device type.
- Loading branch information
Showing
with
109 additions
and 15 deletions.
- +13 −0 include/SDL_touch.h
- +1 −0 src/core/linux/SDL_evdev.c
- +1 −0 src/dynapi/SDL_dynapi_overrides.h
- +1 −0 src/dynapi/SDL_dynapi_procs.h
- +12 −1 src/events/SDL_touch.c
- +2 −1 src/events/SDL_touch_c.h
- +2 −2 src/video/android/SDL_androidtouch.c
- +11 −1 src/video/cocoa/SDL_cocoawindow.m
- +1 −1 src/video/emscripten/SDL_emscriptenevents.c
- +49 −4 src/video/uikit/SDL_uikitview.m
- +1 −1 src/video/wayland/SDL_waylandevents.c
- +1 −1 src/video/wayland/SDL_waylandtouch.c
- +5 −1 src/video/windows/SDL_windowsevents.c
- +1 −1 src/video/winrt/SDL_winrtpointerinput.cpp
- +8 −1 src/video/x11/SDL_x11xinput2.c