Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDL2 port with latest changes from upstream #8

Open
wants to merge 1,883 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1883 commits
Select commit Hold shift + click to select a range
b213315
cocoa: allow calling CreateWindowFrom on an NSView
ligfx Mar 25, 2020
51ae135
wasapi: Improve WASAPI audio backend latency (thanks, Anthony!).
icculus Apr 7, 2020
1c00dd6
wasapi: Patched to compile on C89 systems, and use SDL_ceilf instead …
icculus Apr 7, 2020
1d701e2
joystick: Remove force_centering flag; we handle this on disconnect now.
icculus Apr 8, 2020
631a144
cocoa: Patched to compile.
icculus Apr 8, 2020
5e4393b
First pass at Windows sensor implementation
slouken Apr 8, 2020
b3e9b93
Add perforce support to showrev.sh
slouken Apr 8, 2020
146248e
Revert "Fix incorrectly terminated MakeThreadHighPriority dbus message"
slouken Apr 8, 2020
28d4068
SDL: ps4 controller trigger bits on other controllers just mean that …
slouken Apr 8, 2020
6350e06
Fixed memory leak and removed debug code from Windows sensor implemen…
slouken Apr 8, 2020
803db9c
Removed debug code
slouken Apr 8, 2020
933e012
Fixed Windows accelerometer data units
slouken Apr 8, 2020
cbc4794
Added support for press/release hardware keyboard events in iOS 13.4
slouken Apr 9, 2020
c9d48bc
emscripten: Typo
Beuc Apr 9, 2020
90d6218
emscripten: Send SDL_APP_TERMINATING before unload (#88)
Beuc Apr 9, 2020
9eacab8
emscripten: Fix the reported keys for the numpad. See https://github.…
daid Apr 9, 2020
44f412e
emscripten: Let SDL_GetDisplayUsableBounds return the size of the window
daid Apr 9, 2020
db8351e
emscripten: Pass canvas id to request_pointer_lock
Daft-Freak Apr 9, 2020
320ffa0
emscripten: Add a few keyCode mappings for German keyboards
Daft-Freak Apr 9, 2020
ce16f94
metal: Added some support interfaces to Apple's Metal API (thanks, Ca…
icculus Apr 10, 2020
8c6b90d
stdlib: Add SDL_trunc and SDL_truncf
icculus Apr 10, 2020
36dfe47
render: Scale relative mouse motion better for logical sizing
Apr 10, 2020
bc395f6
render: add a hint for toggling relative scaling
Sep 30, 2019
4f71b42
build: Don't duplicate Libs in Libs.private in pkg-config file
chewi Apr 12, 2020
d2960c1
video: NULL out pointer to freed window surface
jayschwa Apr 12, 2020
cf179cb
Partial fix for bug 5086 - CMake builds on Windows broken by sensor s…
slouken Apr 13, 2020
3cb2522
build: Merge pkg-config Libs.private into Libs for static-only builds
chewi Apr 11, 2020
b1621d3
Enable virtual joystick API by default
slouken Apr 13, 2020
c6c9f83
Enable the virtual joystick API by default
slouken Apr 13, 2020
b04f324
opengl: Allow SDL_GL_MakeCurrent() to accept a NULL window (thanks, M…
icculus Apr 13, 2020
d1f1257
opengl: Convert an int to an SDL_bool.
icculus Apr 13, 2020
8172100
SDL_EGL_ChooseConfig: don't fall through if no matching format exists
psyke83 Apr 13, 2020
e27e383
cmake: use check_symbol_exists, not check_function_exists (thanks, Ma…
icculus Apr 13, 2020
2a9cf95
Fixed rare crash when unplugging Xbox controller on Windows
slouken Apr 13, 2020
d470617
Fixed build
slouken Apr 13, 2020
5a71124
Fixed implicit linkage to ftol2() on Windows
slouken Apr 13, 2020
56ab0e5
egl: Attempt to make this compile on WinRT, etc.
icculus Apr 13, 2020
f2273aa
Added support for new mouse APIs in iOS 13.4
slouken Apr 13, 2020
85c6265
Don't build iOS mouse support on Apple TV
slouken Apr 13, 2020
f44d454
Make sure we're using the bounds of the view for our mouse region
slouken Apr 14, 2020
0fbc5e3
render: Fixed compiler warning about implicit cast.
icculus Apr 14, 2020
b4361c5
opengl: Don't try to do Desktop OpenGL stuff if support isn't available.
icculus Apr 14, 2020
df596e3
Added virtual joystick sources to the Android build
slouken Apr 14, 2020
689cd73
Hide the mouse cursor appropriately on iOS
slouken Apr 14, 2020
66d5e63
Implemented left/right mouse click detection on iOS
slouken Apr 14, 2020
8432efb
Fixed mouse button mapping on iOS
slouken Apr 14, 2020
199748d
Fixed mouse button mapping on iOS
slouken Apr 14, 2020
d039a7e
Added zlib license for Steam Controller headers
slouken Apr 14, 2020
fe6624d
Fixed bug 4299 - A recent change requires Core Bluetooth framework on…
slouken Apr 14, 2020
3e5d053
Removed CoreBluetooth framework dependency as part of fixing bug 4299
slouken Apr 14, 2020
5fb7a3e
README-ios: added a note about enabling hidapi.
icculus Oct 29, 2018
92b4716
Remove development team override for iOS tests
slouken Apr 14, 2020
72213d6
Allow Bluetooth headphones for iOS playandrecord mode
slouken Apr 14, 2020
9be0c61
Fixed bug 5091 - Suspicious condition in HIDAPI_DriverXbox360_UpdateX…
slouken Apr 14, 2020
526d328
cmake: Set HAVE_VIDEO_WAYLAND_QT_TOUCH if appropriate (thanks, Michae…
icculus Apr 14, 2020
c54c9c6
Added support for mousewheel on iOS
slouken Apr 15, 2020
b125b96
Cleanly switch between audio recording, playback, and both, on iOS
slouken Apr 15, 2020
ded4215
haiku: Patched to compile.
icculus Apr 15, 2020
dc5800a
hidapi: Blacklist the Razer Lycosa keyboard from enumeration.
icculus Apr 15, 2020
ca99d73
Fixed the default face button mapping for Nintendo Switch Pro control…
slouken Apr 17, 2020
aafa6b6
Don't send rumble packets too quickly to Nintendo Switch Pro controll…
slouken Apr 17, 2020
81ac6f1
Added support for the Razer Wolverine Ultimate
slouken Apr 18, 2020
4ddd4c4
Added support for the Razer Atrox Arcade Stick
slouken Apr 18, 2020
d415791
Added a Windows Gaming Input joystick driver
slouken Apr 19, 2020
6c1a450
Note which Windows SDK version is required for Windows Gaming Input s…
slouken Apr 19, 2020
8e26ee2
joystick: On disconnect, recenter all game controller inputs.
icculus Apr 20, 2020
0e82947
joystick: Don't report duplicate recentering events for game controll…
icculus Apr 20, 2020
cb8b41a
SDL_error: simplified error string management.
icculus Apr 21, 2020
f4b1652
hid: Add Razer Arctosa keyboard to hid enumeration blacklist.
icculus Apr 21, 2020
1c8786c
Added support for the following controllers:
slouken Apr 22, 2020
c8b01e2
Fixed rare crash when creating an X11 window
slouken Apr 22, 2020
c6b7c40
Fixed build on older Visual Studio, enable new features on newer Visu…
slouken Apr 22, 2020
350c2f2
Fixed crash trying to get battery status on some devices
slouken Apr 23, 2020
100f2b2
Don't use the WGI driver if another driver is already handling the jo…
slouken Apr 23, 2020
bc9e742
Added support for the following controllers:
slouken Apr 23, 2020
cf961d9
Fixed compiler warning
slouken Apr 23, 2020
2b3a520
cmake: various Haiku settings were accidentally under "if(SDL_VIDEO)"
icculus Apr 24, 2020
b11a08c
Fixed running on older versions of iOS
slouken Apr 27, 2020
e739f2b
Added additional logging to track down why the NVIDIA controller does…
slouken Apr 28, 2020
fd196c4
Fixed showrev.sh when using the Bourne shell
slouken Apr 29, 2020
fc20f07
Fixed bug 5112 - CMake won't compile in VS2019
slouken May 2, 2020
a0cc4ab
hints: Fixed a doxygen comment.
icculus May 4, 2020
3273588
hints: Allow specifying audio device metadata.
icculus May 4, 2020
55e242b
Added support for the Razer Kishi
slouken May 4, 2020
b050d66
Improvement for bug 3446 - The haptic API does not allow to select th…
slouken May 4, 2020
044699a
Fixed bug 5121 - Use SDL_calloc instead of calloc in Wayland_CreateWi…
slouken May 4, 2020
b239a1d
stdlib: Fixed compiler warnings about int vs size_t.
icculus May 5, 2020
22e8a66
hid: Cleanup Windows joystick blacklist code, to make additions easier.
icculus May 6, 2020
fae6a64
hid: Add Microsoft Precision Mouse to the joystick blacklist.
icculus May 6, 2020
7bb7c48
ControllerList: add NACON Revolution Unlimited (and it's dongle) and …
slouken May 6, 2020
1f33869
ControllerList: add PDP Faceoff Deluxe Audio Switch Controller and HO…
slouken May 6, 2020
5ea56b4
Added support for the HORI Real Arcade Pro on Mac OSX and Linux
slouken May 6, 2020
483f803
locale: Implemented SDL_GetPreferredLocales().
icculus May 4, 2020
285fdba
Android: factorize asset manager code (bug 2131 and 4297)
1bsyl May 8, 2020
2dfaaa3
Android: fix missing prototype warning
1bsyl May 8, 2020
4ae1cbb
Android: send SDL_LOCALECHANGED when locale changes
1bsyl May 8, 2020
f0da7de
Android: robustness if locale failed to be detected at start
1bsyl May 8, 2020
d51766e
Fixed bug 5103 - Port fcitx support to both fcitx 4 & 5
slouken May 11, 2020
70187b1
Fixed bug 5098 - macOS CreateWindowFrom doesn't work with high-dpi di…
slouken May 11, 2020
3d9cfce
wayland: add support for SDL_SetWindowGrab
Xyene Apr 17, 2020
69ddb59
emscripten: Fix crash in SDL_SetWindowTitle().
icculus May 13, 2020
03c1db3
docs: Linux systems don't need to install wayland-protocols anymore.
icculus May 15, 2020
114fa3f
docs: Fixed README-linux.md's line endings and word wrap.
icculus May 15, 2020
c5c3850
docs: README-linux.md updated for a modern Ubuntu release.
icculus May 15, 2020
2812131
Fixed bug 5100 - compilation CMake Android armeabi-v7a (Thanks Steve …
1bsyl May 15, 2020
f1e51f7
Fix static analysis warning in SDL_render.c
1bsyl May 15, 2020
d5360e5
Fix issue with colorkey, palette and format conversion
1bsyl May 17, 2020
3e7e51f
Only set colorkey, if converted surface has no alpha channel (2979)
1bsyl May 17, 2020
5a62990
emscripten-buildbot.sh: target WebAssembly instead of asm.js.
icculus May 18, 2020
61371ac
checker-buildbot.sh: Use Ninja, not GNU make, and expect scan-build i…
icculus May 18, 2020
dc4aa30
emscripten-buildbot.sh: the SDK path changed on the new build worker.
icculus May 18, 2020
8b322a5
emscripten-buildbot.sh: Leave files in the right place, don't nuke bu…
icculus May 19, 2020
32e2974
raspberrypi-buildbot.sh: Leave files in the right place, don't nuke b…
icculus May 19, 2020
e65ab51
OS/2: Forgot to add locale source dir to makefile.
icculus May 19, 2020
71b8f0e
xcode: make sure locale sources are used in all targets.
icculus May 19, 2020
de89c9b
os2-buildbot.sh: Fix output directory.
icculus May 19, 2020
8a1cfd4
raspberrypi-buildbot.sh: Fix output directory.
icculus May 19, 2020
6e73a73
haiku: Patched to compile.
icculus May 19, 2020
3c84d11
haiku: Another attempt at fixing build.
icculus May 19, 2020
5fc645f
windows-buildbot-zipper.bat: Attempt to update for new buildbot.
icculus May 19, 2020
1186ff2
os2-buildbot.sh: Fix upload path.
icculus May 19, 2020
abb3fc4
locale: Make sure C++ implementations (Haiku!) use C linkage.
icculus May 19, 2020
57f8169
build-scripts: Attempt at a static analysis batch file for Windows.
icculus May 19, 2020
51dab0b
checker-buildbot.bat: Removed. This is clearly not going to work like…
icculus May 19, 2020
2957c14
configure: Not all compilers understand -idirafter, use -I instead.
icculus May 19, 2020
be6618f
configure: Regenerate configure script.
icculus May 19, 2020
5f5cd26
configure: Do a real check for -idirafter anyhow.
icculus May 19, 2020
e1e7561
configure: -idirafter needs a space, -I doesn't.
icculus May 19, 2020
67dd8af
configure: Just don't do the -idirafter on QNX.
icculus May 19, 2020
1d31eb0
locale: Patched to compile on Windows Phone.
icculus May 20, 2020
c003ee7
configure: fix fcitx tests.
icculus May 20, 2020
b62836d
locale: Fixed compiler warning on WinRT.
icculus May 20, 2020
38d4244
windows: Fix calls to CoCreateInstance() so last parameter is a LPVOI…
icculus May 20, 2020
693c2e7
sensor: Fix build on various Windows compilers with various predefini…
icculus May 20, 2020
a790889
hidapi: Fix compiler warning.
icculus May 20, 2020
b18cf52
sensor: Correct fix for redefinition of various symbols.
icculus May 20, 2020
cfccc40
sensor: Fix overaggressive search/replace. :)
icculus May 20, 2020
300683a
locale: Fixed compiler warning on Visual Studio.
icculus May 21, 2020
7a74e35
sensor: Fixed compiler warnings on mingw64.
icculus May 21, 2020
36ea254
locale: Removed unused variable.
icculus May 21, 2020
307655c
Added a note not to use XinputUap.dll for XInput support
slouken May 22, 2020
7b1bc6a
Fixed creating a metal renderer without specifying a metal window
slouken May 25, 2020
c501536
Make some changes to SDL_SetThreadPriority to try and have SDL transp…
slouken May 26, 2020
5c02671
Include SDL_hint.h.
slouken May 26, 2020
4d0c34f
Include SDL_hints.h.
slouken May 26, 2020
2a9d4f7
Rename Linux-only variable.
slouken May 26, 2020
ec212af
More Linux fixes.
slouken May 26, 2020
50ff857
Getting closer.
slouken May 26, 2020
90c00aa
Fixed iOS build
slouken May 26, 2020
6deb980
Fixed bug 5140 - KMSDRM: Dynamic vsync toggle does not work
slouken May 26, 2020
c3c77ca
Fixed bug 5141 - KMSDRM: manage SDL_GetGlobalMouseState()
slouken May 26, 2020
64e95be
If there isn't a GetGlobalMouseState() implementation, fall back to t…
slouken May 26, 2020
9171f4a
Fixed compiler warning building on FreeBSD
slouken May 27, 2020
a6c6c27
Fixed uninitialized variable warning
slouken May 27, 2020
4b924fe
Fixed building with --disable-joystick on macOS
slouken May 27, 2020
6ec495c
Fixed mkdir warning when running iosbuild.sh multiple times
slouken May 27, 2020
18e8dbb
Use nil instead of NULL for Objective-C objects
slouken May 27, 2020
611dbfb
Fixed building on iOS with MFI controllers disabled
slouken May 27, 2020
4d869dd
Fixed building with --disable-joystick on Linux
slouken May 27, 2020
b29708d
Fixed building with --disable-joystick on iOS
slouken May 27, 2020
7bcf671
Don't include the iOS joystick driver if joysticks are disabled
slouken May 27, 2020
a0030e7
wayland: assert that mmap() didn't return NULL.
icculus May 28, 2020
0474257
wayland: Move buffer copy into mime_data_list_add()
icculus May 28, 2020
35374aa
wayland: Changed output removal in handle_surface_leave()
icculus May 28, 2020
8e7e9e6
Add Logitech G29 to steering wheel list
mrpippy Apr 24, 2020
7a4179c
SDL_blit: Fix undefined bitshift operations
jlegg0 May 29, 2020
550d1a0
Fixed bug 5161 - Autodetect controller mappings based on the Linux Ga…
slouken May 29, 2020
1378c64
Fixed variable names to be consistent across functions
slouken May 29, 2020
b991942
Initialize the raw_map before getting controller mappings from the dr…
slouken May 29, 2020
f8430b7
The zero happens at a higher level now
slouken May 29, 2020
85c1d40
- Added exception handler for the new SecurityException in USBDevice …
May 29, 2020
5cfcd98
Don't bother logging security exception getting the device serial number
slouken May 29, 2020
587f7fc
wayland: update pointer position on initial enter event
Xyene May 21, 2020
30e46de
Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
slouken May 29, 2020
8d6ee6e
cocoa: Change Caps Lock behavior to toggle instead of locking
cgutman May 26, 2020
bfaba1e
Fixed bug 5145 - Fix whitespace in SDL_vulkan.h
slouken May 29, 2020
86c309a
Fixed bug 5105 - sndio support not working in dynamic mode (dlopen)
slouken May 29, 2020
1fa548e
Fixed bug 5155 - HIDAPI_JoystickDisconnected incorrect array shift
slouken May 30, 2020
d63b745
Fixed bug 5113 - SDL_UpdateWindowSurfaceRects BitBlt the entire surfa…
slouken May 30, 2020
68d5560
Fixed bug 5147 - KMSDRM: SetWindowFullscreen() failing with SDL_WINDO…
slouken Jun 2, 2020
3384f7b
Fixed whitespace in SDL_vulkan.h
slouken Jun 2, 2020
2e255d5
Fixed bug 5167 - Memory leak in GuessXInputDevice
slouken Jun 3, 2020
1913806
Enable Xbox One HIDAPI driver on macOS
cgutman Apr 26, 2020
8168f31
Fixed bug 5168 - Memory leak in RAWINPUT_JoystickOpen
slouken Jun 3, 2020
b7252b8
video: Set window->surface NULL after freeing it.
icculus Jun 3, 2020
63629dd
Make sure SDL_locale.h is included in the Xcode Framework
slouken Jun 3, 2020
8f15e12
Make sure SDL_locale.h is included in the Xcode Framework for tvOS
slouken Jun 3, 2020
5cd4900
Make sure SDL_locale.h is included in the Xcode Framework for macOS
slouken Jun 3, 2020
72ab2c1
Updated configure with changes from configure.ac
slouken Jun 4, 2020
9637b2f
Fixed build warning
slouken Jun 4, 2020
96f1313
Fixed bug 5169 - Can not build current sources because of recent thre…
slouken Jun 4, 2020
a042a85
Fixed Bluetooth audio output on Apple TV
slouken Jun 4, 2020
4c1c6d0
Fixed exception if getManifestEnvironmentVariables() is called withou…
slouken Jun 4, 2020
22d12ed
Initial Vita port
xerpi Jan 23, 2016
b51a5db
Vita: Update ar arguments
xerpi Jan 23, 2016
0c23afd
Vita: Update port
xerpi Jan 23, 2016
56565f3
VITA: Update Makefile
xerpi Jul 31, 2016
73885e4
added types.h
ooPo Aug 14, 2016
5abdec7
fix VITA_RenderPresent
Cpasjuste Sep 5, 2016
2a81606
fix SDL_PumpEvents crash (still not implemented)
Cpasjuste Sep 6, 2016
9465fbd
enable joystick axis (analog)
Cpasjuste Sep 6, 2016
4c9c181
VITA_RenderCopy: allow stretch/scale texture as per SDL documentation…
Cpasjuste Sep 6, 2016
11cb0c5
fix VITA_RenderCopy scaling
Cpasjuste Sep 7, 2016
ae1a4ad
fix SDL_SemValue
Cpasjuste Sep 27, 2016
8edf0c6
fix inputs without modifying core SDL sources
Cpasjuste Sep 28, 2016
ba0d8f4
fix merge
Cpasjuste Sep 28, 2016
876b1bd
PSP2: fix vitaaudio
Cpasjuste Oct 12, 2016
15ab332
PSP2: support for multiple audio freqs
Cpasjuste Oct 19, 2016
4403843
PSP2: fix for latest vitasdk
Cpasjuste Nov 16, 2016
fe8b179
PSP2: support for multiple controllers on VitaTV
rsn8887 Jan 24, 2017
cf01ea9
Vita: - Fix the ids for controllers on Vita TV
rsn8887 Jan 26, 2017
34d6bf7
VITA: Link SDL_dataqueue.o (xerpi)
Cpasjuste Feb 3, 2017
f4e0c0a
VITA: proper defines
Cpasjuste Feb 3, 2017
0fc3da3
VITA: enable arm asm optimisations
Cpasjuste Feb 3, 2017
d48f547
VITA: fix optimisation flags
Cpasjuste Feb 3, 2017
7418062
VITA: disable VITA_UnlockTexture, this is redundant as we directly wr…
Cpasjuste Feb 3, 2017
cd28557
VITA: edit VITA_UnlockTexture comment
Cpasjuste Feb 3, 2017
3589460
VITA: add software opengl
Cpasjuste Feb 8, 2017
5c16360
VITA: disable osmesa/gl renderer by default
Cpasjuste Feb 8, 2017
259cf2b
VITA: fix missing video files
Cpasjuste Feb 9, 2017
36c8aa8
VITA: enable SDL_VIDEO_OPENGL for osmesa build
Cpasjuste Feb 10, 2017
f507262
VITA: Add touch screen support
angguss Aug 16, 2017
1effd5b
VITA: Cleanup unused variables
angguss Aug 16, 2017
a3dfcca
VITA: Renamed fingerid to correct style
angguss Aug 16, 2017
2393e4e
vita: fix merge
rsn8887 Nov 15, 2017
22c8444
Vita: fix merge
rsn8887 Nov 17, 2017
c837f73
VITA: use linear joystick response, fix joystick name
rsn8887 Dec 20, 2017
8cd3670
VITA: add support for SDL_HINT_RENDER_SCALE_QUALITY
rsn8887 Dec 20, 2017
aa3115f
VITA: support Game Controller API
rsn8887 Dec 20, 2017
d21f64c
Vita: fix SDL_GetPlatform, use __vita__ define exclusively
rsn8887 Dec 21, 2017
b4e1a0f
VITA: add support for Bluetooth Keyboard and Mouse
rsn8887 Dec 23, 2017
81a41a5
VITA: only send BT mouse motion event if mouse moved
rsn8887 Dec 24, 2017
a02069c
VITA: fix repeated BT keyboard events
rsn8887 Dec 24, 2017
544a1f5
VITA: fix BT keyboard Caps Lock and Num Lock
rsn8887 Dec 24, 2017
4aedbd6
use ar instead of gcc-ar in Makefile.vita
rsn8887 Jan 12, 2018
37bf7b6
VITA: Use the full range of analog stick motion
rsn8887 Jan 17, 2018
dd47a08
VITA: Use normalized touch coordinates following SDL specs
rsn8887 Jan 23, 2018
5778b0d
VITA: normalize to screen, not active area, for front touch
rsn8887 Jan 24, 2018
d1fee65
VITA: remove bluetooth keyboard and mouse lag
rsn8887 Apr 4, 2018
690a00c
vita: fix merge
rsn8887 Apr 11, 2018
13d86ea
vita: allow rendering textures with scaling < 100%
rsn8887 May 21, 2018
8bdbecd
Vita: fix bug in UpdateTexture when rect->y!=0
rsn8887 May 22, 2018
0a5a51c
Add support for per-texture color and alpha (#3)
Tearnote Nov 18, 2018
6520572
Calling wait_rendering_done before freeing stuffs. (#4)
Rinnegatamante Jan 18, 2019
77c6f5e
Vita: fix drawing garbage if texture width is not divisible by 8
rsn8887 May 1, 2019
c6281eb
Vita: add README.MD with build instructions
rsn8887 Jun 17, 2019
f3d23a4
Update Vita implementation to match the new API
sergiou87 Jun 3, 2020
fe5adc4
Adapt implementation of Vita joysticks to new API
sergiou87 Jun 3, 2020
8cad3a7
Fix crash creating texture
sergiou87 Jun 3, 2020
726296f
Don't generate mouse events with the touchscreen on Vita
sergiou87 Jun 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 27 additions & 2 deletions .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,34 @@ autom4te*
config.cache
config.log
config.status
libtool
Makefile
sdl-config
Makefile.rules
sdl2-config
sdl2-config.cmake
sdl2.pc
SDL2.spec
build
gen
Build

# for CMake
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
cmake_uninstall.cmake
SDL2ConfigVersion.cmake
*.a
*.la
*.so
*.so.*
.ninja_*
*.ninja

# for CLion
.idea
cmake-build-*

# for Xcode
*.orig
*.swp
Expand Down Expand Up @@ -58,7 +79,7 @@ VisualC/visualtest/testsprite2_sample.parameters
# for Android
android-project/local.properties

sdl.pc
test/aclocal.m4
test/autom4te*
test/config.cache
test/config.log
Expand Down Expand Up @@ -112,6 +133,7 @@ test/testresample
test/testrumble
test/testscale
test/testsem
test/testsensor
test/testshader
test/testshape
test/testsprite2
Expand All @@ -121,10 +143,13 @@ test/testthread
test/testtimer
test/testver
test/testviewport
test/testvulkan
test/testwm2
test/testyuv
test/torturethread
test/*.exe
test/*,e1f
test/*,ff8
test/*.dSYM
buildbot
test/buildbot
5 changes: 5 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@ e12c387305129c847b3928a123300b113782fe3f release-2.0.4
8df7a59b55283aa09889522369a2b32674c048de release-2.0.6
2088cd828335797d73d151e3288d899f77204862 release-2.0.7
f1084c419f33610cf274e309a8b2798d2ae665c7 release-2.0.8
8feb5da6f2fb75703bde2c06813375af984a57f0 release-2.0.9
bc90ce38f1e27ace54b83bebf987993002504f7f release-2.0.10
78d0bb6f3b8f9b8f2a76cb357a407bc7ace57234 release-2.0.12
78d0bb6f3b8f9b8f2a76cb357a407bc7ace57234 release-2.0.12
355a4f94a782747a990b2fedaebc7bebd280e153 release-2.0.12
58 changes: 54 additions & 4 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ LOCAL_SRC_FILES := \
$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
$(wildcard $(LOCAL_PATH)/src/audio/openslES/*.c) \
$(LOCAL_PATH)/src/atomic/SDL_atomic.c.arm \
$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
$(wildcard $(LOCAL_PATH)/src/core/android/*.c) \
Expand All @@ -31,11 +32,16 @@ LOCAL_SRC_FILES := \
$(wildcard $(LOCAL_PATH)/src/haptic/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
$(LOCAL_PATH)/src/joystick/steam/SDL_steamcontroller.c \
$(wildcard $(LOCAL_PATH)/src/joystick/hidapi/*.c) \
$(wildcard $(LOCAL_PATH)/src/joystick/virtual/*.c) \
$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
$(wildcard $(LOCAL_PATH)/src/locale/*.c) \
$(wildcard $(LOCAL_PATH)/src/locale/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/power/*.c) \
$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/filesystem/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/sensor/*.c) \
$(wildcard $(LOCAL_PATH)/src/sensor/android/*.c) \
$(wildcard $(LOCAL_PATH)/src/render/*.c) \
$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
Expand All @@ -48,10 +54,36 @@ LOCAL_SRC_FILES := \
$(wildcard $(LOCAL_PATH)/src/video/yuv2rgb/*.c) \
$(wildcard $(LOCAL_PATH)/src/test/*.c))

LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
LOCAL_SHARED_LIBRARIES := hidapi

cmd-strip :=
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
LOCAL_CFLAGS += \
-Wall -Wextra \
-Wdocumentation \
-Wdocumentation-unknown-command \
-Wmissing-prototypes \
-Wunreachable-code-break \
-Wunneeded-internal-declaration \
-Wmissing-variable-declarations \
-Wfloat-conversion \
-Wshorten-64-to-32 \
-Wunreachable-code-return \
-Wshift-sign-overflow \
-Wstrict-prototypes \
-Wkeyword-macro \


# Warnings we haven't fixed (yet)
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-sign-compare


LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid

ifeq ($(NDK_DEBUG),1)
cmd-strip :=
endif

LOCAL_STATIC_LIBRARIES := cpufeatures

include $(BUILD_SHARED_LIBRARY)

Expand Down Expand Up @@ -86,4 +118,22 @@ LOCAL_MODULE_FILENAME := libSDL2main

include $(BUILD_STATIC_LIBRARY)

###########################
#
# hidapi library
#
###########################

include $(CLEAR_VARS)

LOCAL_CPPFLAGS += -std=c++11

LOCAL_SRC_FILES := src/hidapi/android/hid.cpp

LOCAL_MODULE := libhidapi
LOCAL_LDLIBS := -llog

include $(BUILD_SHARED_LIBRARY)

$(call import-module,android/cpufeatures)

Loading