Commit Graph

10780 Commits

Author SHA1 Message Date
rw-r-r-0644
d28a5bd9bc wiiu: Disable DRC surround mode as it causes distortion 2018-10-28 19:22:04 +01:00
Ash
a09bd44937 video: Respect application's requested window size/position 2018-10-28 19:22:04 +01:00
Ash
7e5c1cb6c5 video: move position buffer filling to UpdateWindowFramebuffer 2018-10-28 19:22:04 +01:00
Ash
d4e03b4f63 video: oops 2018-10-28 19:22:04 +01:00
Ash
1880c5eb19 video: Style nits 2018-10-28 19:22:04 +01:00
Ash
05a87f8b4c video: start refactoring - move rendering to own function 2018-10-28 19:20:38 +01:00
rw-r-r-0644
bffa382867 wiiu: switch to wut.mk 2018-10-28 19:20:38 +01:00
Ash
75b3d1d460 audio: DCFlushRange -> DCStoreRange 2018-10-28 19:20:38 +01:00
Ash
0efb12c5fe audio: Send voice to TV 2018-10-28 19:20:38 +01:00
Ash
7e9da513bb audio: Add *very* early wiiu audio support 2018-10-28 19:20:38 +01:00
rw-r-r-0644
c229b8fb76 wiiu: explicitly set endianess in config (thanks @quarktheawesome) [needed for missing defines in toolchain] 2018-10-28 19:19:03 +01:00
rw-r-r-0644
94562d2998 input/wiiu: switch back to VPADGetTPCalibratedPoint 2018-10-28 19:19:03 +01:00
rw-r-r-0644
8a6cc1572a threads/wiiu: fix crash on SDL_SYS_CreateThread: pass stack top and not stack bottom 2018-10-28 19:19:02 +01:00
rw-r-r-0644
f57b388311 wiiu: enable thread support and stop building generic thread impl 2018-10-28 19:19:02 +01:00
rw-r-r-0644
578929a363 threads/wiiu: remove unused SDL_mutex structure definition and only build when requested 2018-10-28 19:19:02 +01:00
rw-r-r-0644
71d738734b threads/wiiu: implement SDL_CondWaitTimeout 2018-10-28 19:19:02 +01:00
rw-r-r-0644
afb9024d4d threads/wiiu: add sysmutex_c.h header 2018-10-28 19:19:02 +01:00
rw-r-r-0644
c090e1c9e3 threads/wiiu: add generic thread storage 2018-10-28 19:19:02 +01:00
rw-r-r-0644
18bc3341ec threads/wiiu: add semaphores 2018-10-28 19:19:02 +01:00
rw-r-r-0644
9e5b6f01f4 wiiu/input: Use raw for touchscreen and check for VPADRead errors 2018-10-28 19:19:02 +01:00
rw-r-r-0644
d2209d6011 Rewrite wiiu joystick driver to better match switch's and add touchscreen support 2018-10-28 19:19:02 +01:00
rw-r-r-0644
9aac69a38d Do not send SDL_QUIT from WIIU_PumpEvents: it causes crashes and isn't the right way to do it 2018-10-28 19:18:31 +01:00
rw-r-r-0644
f587599124 Change shader include guard to match SDL 2018-10-28 19:18:31 +01:00
rw-r-r-0644
b704ad248c Switch to GX2!! (thanks to exjam for his help and toolchain and aliaspider for his shader!) 2018-10-28 19:17:10 +01:00
rw-r-r-0644
a87cd02bf4 Initial support for Nintendo WiiU 2018-10-28 19:14:23 +01:00
Sam Lantinga
b8ffbe177a This change looks okay in the general case.
If we run into problems where these events aren't dispatched (initialized on a different thread than the main thread?) we may need to create a separate thread to handle device notifications like we do with the windows joystick subsystem.
2018-10-26 20:20:28 -07:00
Ryan C. Gordon
a404e5056f hidapi: Don't run a separate event loop for device notifications.
Fixes Bugzilla #4286.
2018-10-26 14:43:39 -04:00
Sam Lantinga
933bdaf91b Added patch note for SDL_GameControllerGetPlayerIndex() and friends 2018-10-26 09:49:27 -07:00
Sam Lantinga
e6472f3cb3 Don't build SDL_JOYSTICK_HIDAPI by default on iOS
If you enable this, you'll need to link with CoreBluetooth.framework and add something like this to your Info.plist:
<key>NSBluetoothPeripheralUsageDescription</key>
<string>MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app.</string>
2018-10-26 09:27:31 -07:00
Sam Lantinga
da9d1fdad4 Generalized the XInput user index into a player index 2018-10-25 16:53:14 -07:00
Sam Lantinga
67832fdf10 Fixed initializing XInput user index 2018-10-25 13:22:34 -07:00
Sam Lantinga
e8f3a27057 Added SDL_JoystickGetXInputUserIndex() 2018-10-25 12:54:42 -07:00
Sam Lantinga
95bd760475 Added vi style for the Emscripten joystick code 2018-10-25 12:54:39 -07:00
Ozkan Sezer
d035b946dc CMakeLists.txt: set dylib version numbers properly. (bug #2915.) 2018-10-25 11:11:02 +03:00
Sam Lantinga
b38f2beac8 Fixed reinitializing the SDL joystick subsystem on Android 2018-10-23 12:40:25 -07:00
Ozkan Sezer
3a62b00485 fix permissions 2018-10-23 09:10:02 +03:00
Sam Lantinga
a678430946 Change our fullscreen wait logic to only wait if we need to. (thanks Rachel!) 2018-10-22 14:55:47 -07:00
Sam Lantinga
4b06169440 Handle failure to load hidapi gracefully 2018-10-22 14:55:45 -07:00
Sam Lantinga
ddee9a366a Add exception handling to Android hidapi. 2018-10-22 14:55:42 -07:00
Ryan C. Gordon
135273d029 wasapi/win32: Sort initial device lists by device GUID.
This makes an unchanged set of hardware always report devices in the same
order on each run.
2018-10-21 22:40:17 -04:00
Ryan C. Gordon
d47f7c3505 x11: Fixed incorrect function signature for XkbSetDetectableAutoRepeat.
It needs to use Bool (which is an int) and not BOOL (which is CARD8), which
causes problems on platforms with different byte order and alignment, etc.

Fixes Bugzilla #4326.
2018-10-20 21:35:48 -04:00
Ryan C. Gordon
32bec112ae cocoa: Put a mutex around GL_SwapBuffers.
Prevents deadlock when swapping two different GL contexts on two different
threads at the same time on macOS 10.14 ("Mojave").

Fixes Bugzilla #4278.
2018-10-18 23:38:27 -04:00
Thomas Perl
95ea2ed177 Fix "unresponsible application" issues in Wayland
Polling without wl_display_flush() never responds to ping requests.
In that case ping-pong works only on other events, such as user input
or on frame swapped.

From https://git.merproject.org/mer-core/libsdl/merge_requests/3
Original author: Alexander Akulich <a.akulich@omprussia.ru>
2018-08-23 14:47:38 +02:00
Sam Lantinga
4bee75315f Fixed bug 4324 - Xcode 10 - more cleanup for macOS and iOS projects
Dominik Reichardt

Xcode warns about
"Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO."
Just doing the latter is enough to silence the warning without ill effects on compiling. This affects the macOS Xcode projects as well as the iOS projects. Definitely not a bug but an annoying warning that could go away.
2018-10-18 15:41:50 -07:00
Sam Lantinga
900bc0f1d6 Fixed bug 4324 - Xcode 10 - more cleanup for macOS and iOS projects
Dominik Reichardt

Similar to bug/patch #4228, the iOS Demo Xcode project needs to add the CoreBluetooth framework.
2018-10-18 15:40:39 -07:00
Ryan C. Gordon
1da5ad6607 cocoa: Fix OpenGL rendering on macOS 10.14 ("Mojave").
Fixes Bugzilla #4272.
2018-10-18 12:05:05 -04:00
Ryan C. Gordon
92b1ddcd15 cocoa: GL_GetDrawableSize only uses -[NSView convertRectToBacking] for highDPI.
On Mojave, this will report large numbers for retina displays in fullscreen
mode, which isn't how it works on previous versions.
2018-10-18 11:59:48 -04:00
Ozkan Sezer
cadc39adf6 use less ancient versions of autofoo scripts 2018-10-18 11:58:00 +03:00
Sam Lantinga
1762542422 Fixed bug 4318 - Android move Haptic code to API26 class
Sylvain

- Create SDLHapticHandler_API26
- No need of reflection since SDL2 compile with Android 26 as a min requirement.
- remove spaces
2018-10-16 15:00:43 -07:00
Sam Lantinga
3c0f019a28 Fixed updating the rumble parameters on Linux 2018-10-16 14:58:07 -07:00