GaryOderNichts
f36cf7c86f
Wii U support
...
commit 54e4e2d678dc6ff816996716925c00fe92d68371
Author: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>
Date: Mon Feb 1 00:00:11 2021 +0100
audio/wiiu: don't wait if device is not enabled
commit a407599d6da07faab912878fe8a76e02f5303933
Author: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>
Date: Sun Jan 31 23:59:28 2021 +0100
audio/wiiu: deregister framecallback before freeing sources
commit 6815956b2b4e8b317e0cc691a05815cea9d323db
Author: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>
Date: Sun Aug 30 22:21:17 2020 +0200
render/wiiu: change origin to the upper left (#63 )
commit 87ed1223be7747e077c451b0e0ff8949a552aadb
Author: Sergio Padrino <sergio.padrino@gmail.com>
Date: Sun Jun 21 10:53:45 2020 +0200
Add GameController support for the Wii U Gamepad (#59 )
commit eb05b491c1
Author: Ash Logan <ash@heyquark.com>
Date: Thu Apr 23 21:20:23 2020 +1000
video/wiiu: Don't replace an already running ProcUI
commit e3d2191889
Author: Ash Logan <ash@heyquark.com>
Date: Sun Jan 5 12:49:02 2020 +1100
render/wiiu: respect SDL_RENDERER_PRESENTVSYNC
commit a9be38d3a1
Author: Ash Logan <ash@heyquark.com>
Date: Thu Nov 21 13:52:07 2019 +1100
cmake: Don't link against stub libraries
commit 71e63524fc
Author: Ash Logan <ash@heyquark.com>
Date: Thu Nov 21 13:38:45 2019 +1100
audio/wiiu: Add maps for mono and stereo audio
commit f7568b7d97
Author: Ash Logan <ash@heyquark.com>
Date: Thu Nov 21 13:01:12 2019 +1100
joystick/wiiu: Add player index support
commit 26290a65a6
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Thu Oct 17 18:48:51 2019 +0200
audio/wiiu: FIx right audio channel
The deinterleaving algorithm ended up overwriting the first half of the right channel buffer
commit 7c235083d0
Author: Ash Logan <ash@heyquark.com>
Date: Thu Oct 17 18:39:15 2019 +1100
audio/wiiu: Attempt to make stereo become n-channel (broken)
This does something odd with the right channel and it sounds wrong
commit d929c75f0b
Author: Ash Logan <ash@heyquark.com>
Date: Sat Sep 21 22:47:38 2019 +1000
audio/wiiu: (very) early stereo implementation
-Remove calculations relying on buffer size instead of sample count
- Add some temp code to deinterleave on the CPU
- Add a crap solution - voice_r. Really should be an array of voices,
gimme some time for that
commit fa6d0c47b8
Author: Ash Logan <ash@heyquark.com>
Date: Fri Sep 20 23:07:36 2019 +1000
audio/wiiu: Properly initialise AXVoiceDeviceMixData
(fixes odd behaviour when surround sound is enabled, hopefully)
commit 0c51093c68
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun May 26 15:46:07 2019 +0200
Update build instructions
commit 0eaa9070a2
Author: Ash Logan <ash@heyquark.com>
Date: Sun Mar 24 21:07:14 2019 +1100
joystick/wiiu: Add support for WPAD/KPAD controllers
commit 776380a70f
Author: Ash Logan <ash@heyquark.com>
Date: Sun Mar 24 19:04:18 2019 +1100
joystick/wiiu bugfix: Don't hardcode Gamepad device_index to 0
commit 564c25b52f
Author: Ash Logan <ash@heyquark.com>
Date: Sun Mar 24 19:01:21 2019 +1100
joystick/wiiu: Hotplug support (gamepad only)
commit d3c3ee1e98
Author: Ash Logan <ash@heyquark.com>
Date: Sat May 4 20:35:42 2019 +1000
big oops: missed a merge conflict on 2.0.9
commit f2e83587ad
Author: Ash Logan <ash@heyquark.com>
Date: Sun Mar 24 14:55:39 2019 +1100
cmake: Update SDL_LIBS so pkg-config pulls in needed Cafe libs
commit bf5e9a1cd5
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Mar 19 00:34:06 2019 +0100
render/wiiu: Fix scaling mode for windowTex
Previously the driver would always end up using point scaling as the final windows texture scaling mode and thus the screen output
commit 6ba2f62f38
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Mon Mar 18 23:11:18 2019 +0100
render/wiiu: Allocate normal textures from MEM2
MEM1 fills up very quickly and soon runs out of space for apps with many textures
commit 14bbb4a0f1
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Mon Mar 18 22:46:17 2019 +0100
render/wiiu: DestroyRenderer: Wait for the rendering to finish and free texture draw data
commit c349a79696
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Mon Mar 18 22:45:06 2019 +0100
render/wiiu: Free render data after calling GX2DrawDone
commit fb9cda3712
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Mon Mar 18 22:43:01 2019 +0100
render/wiiu: Reintroduce check removed with fd92b81 to fix crashes
commit 4388bea3ad
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Mon Mar 18 15:18:29 2019 +0100
render/wiiu: Fix the remaining graphical glitches!
commit d4f823db47
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 01:58:34 2019 +0100
render/wiiu: Code cleanup
* Remove unused functions
* Remove unneeded checks
* Uniform coding style with the rest of SDL
commit 74a42de67b
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 01:06:15 2019 +0100
render/wiiu: Use WIIU_FreeRenderData in DestroyRenderer
commit 87fbbbec7e
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 01:05:18 2019 +0100
render/wiiu: Update RenderReadPixels to lock the surface and use the correct texture format
commit ceb9f1c096
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 00:53:02 2019 +0100
render/wiiu: Fix compiler warnings
commit 7a02c03542
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 00:46:05 2019 +0100
render/wiiu: Reduce GX2SetContextState calls
The function takes a fairly long time to complete
commit 7507d2b9a2
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 00:40:22 2019 +0100
render/wiiu: Disable blending for render_scene
commit 7446bdc731
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 00:36:38 2019 +0100
render/wiiu: Implement SetTextureColorMod/SetTextureAlphaMod
commit fcb1d21683
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Mar 10 00:25:10 2019 +0100
render/wiiu: Use vec* for u_texSize and u_viewSize
commit eba4263f00
Author: Ash Logan <ash@heyquark.com>
Date: Fri Mar 8 11:41:31 2019 +1100
render/wiiu: Re-set context state after a clear
whb does this, so y'know
commit dcb58351f0
Author: Ash Logan <ash@heyquark.com>
Date: Fri Mar 8 11:23:03 2019 +1100
render/wiiu: Textures keep their own colour buffers
commit 8c4b5c066e
Author: Ash Logan <ash@heyquark.com>
Date: Thu Mar 7 22:10:27 2019 +1100
render/wiiu: Use point scaling by default
see https://wiki.libsdl.org/SDL_HINT_RENDER_SCALE_QUALITY
commit da762c2f05
Author: Ash Logan <ash@heyquark.com>
Date: Thu Mar 7 21:59:49 2019 +1100
video/wiiu: Add support for DRC/TV only windows (#1 )
commit f814e40fcf
Author: Kuruyia <Arc13@users.noreply.github.com>
Date: Sun Mar 3 13:19:55 2019 +0100
video/wiiu: Add flags to only draw on TV or Gamepad (#1 )
commit b6873f94f4
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Feb 1 19:17:33 2019 +0100
Edit README for the wiiu port
commit d58f563d65
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Thu Jan 24 08:44:37 2019 +0100
input/wiiu: Clear last_touched after sending touch release event
commit 73ba941733
Author: Ash Logan <ash@heyquark.com>
Date: Wed Mar 6 19:53:43 2019 +1100
render/wiiu: Use vec* for FillRects (fixes no-draw bug)
commit 482fa50607
Author: Ash Logan <ash@heyquark.com>
Date: Wed Mar 6 19:05:58 2019 +1100
render/wiiu: Fix present position/texcoord confusion
commit 2b640b8e7b
Author: Ash Logan <ash@heyquark.com>
Date: Wed Mar 6 17:52:57 2019 +1100
render/wiiu: Respect window sizes
commit b17164d5f6
Author: Ash Logan <ash@heyquark.com>
Date: Wed Mar 6 15:43:40 2019 +1100
render/wiiu: Handle window size changes
commit 89013edb6c
Author: Ash Logan <ash@heyquark.com>
Date: Wed Mar 6 09:17:45 2019 +1100
render/wiiu: readability - introduce vec* structs for drawing
commit e147fbab72
Author: Ash Logan <ash@heyquark.com>
Date: Tue Mar 5 22:27:45 2019 +1100
render/wiiu: Fix resource flags on texture creation
commit 72d34778d6
Author: Ash Logan <ash@heyquark.com>
Date: Tue Mar 5 22:27:13 2019 +1100
render/wiiu: Convert RenderData to use GX2RBuffers
commit ca33399a70
Author: Ash Logan <ash@heyquark.com>
Date: Tue Mar 5 13:07:53 2019 +1100
render/wiiu: Use GX2R for texture surfaces
Untested at time of commit, hopefully it works hehe
commit fa157dbcaa
Author: Ash Logan <ash@heyquark.com>
Date: Tue Mar 5 12:00:41 2019 +1100
video/wiiu: Remove the last of the emulated framebuffer
commit e713fb41d1
Author: Ash Logan <ash@heyquark.com>
Date: Wed Feb 20 22:37:39 2019 +1100
render/wiiu: FLUSH THE CACHE. FLUSH THE CACHE.
commit aebe08cf45
Author: Ash Logan <ash@heyquark.com>
Date: Wed Feb 20 21:44:15 2019 +1100
video/wiiu: Call SDL_SetKeyboardFocus on window creation
commit fab05b5179
Author: Ash Logan <ash@heyquark.com>
Date: Thu Jan 24 17:03:08 2019 +1100
wiiu: first attempt at using the render driver instead of WindowFramebuffer
commit 5137bdb29f
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Jan 12 19:20:13 2019 +0100
render/wiiu: Fixup color blending
commit 6824fb4284
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Jan 12 16:30:01 2019 +0100
render/wiiu: Correct direction of rotation for RenderCopyEx
commit d3ad23e0cd
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Jan 12 16:28:03 2019 +0100
render/wiiu: Drawing is synchronized with refresh rate
commit e88463592d
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Jan 12 13:08:15 2019 +0100
Add README.md for the WiiU port
commit 2022692d60
Author: Ash Logan <ash@heyquark.com>
Date: Sat Jan 12 20:59:50 2019 +1100
render/wiiu: Add support for color/alpha mod values/some blend modes
commit b0defceb9b
Author: Ash Logan <ash@heyquark.com>
Date: Sat Jan 12 20:57:21 2019 +1100
add gitignore (sorry)
commit 4134be1cb8
Author: Ash Logan <ash@heyquark.com>
Date: Thu Jan 3 20:13:22 2019 +1100
render/wiiu: don't put debug messages in the released code
commit cbc64b5f3e
Author: Ash Logan <ash@heyquark.com>
Date: Thu Jan 3 17:04:26 2019 +1100
render: Add loads of GX2 texture formats
commit dd77800d1c
Author: Ash Logan <ash@heyquark.com>
Date: Thu Jan 3 13:41:40 2019 +1100
include: Add extra checks for endian on devkitPPC
commit 3e20fffb49
Author: Ash <ash@heyquark.com>
Date: Tue Nov 6 21:12:17 2018 +1100
render/wiiu: Safety checks on SDL_DestroyTexture
commit 6b2e8b9113
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Nov 6 17:55:40 2018 +0100
wiiu/shaders: Add shader source code + basic regenerate script
commit 94a46ebb35
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Oct 30 22:04:29 2018 +0100
wiiu: Switch to cmake
commit 9bee9180c2
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Oct 30 21:58:51 2018 +0100
wiiu/joystick: Updates for the new joystick interfaces
commit 463b9e07e4
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 19:41:37 2018 +0100
wiiu: Updates for newer SDL
commit 37f2ef8682
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 14:34:06 2018 +0100
wiiu: Edit config comment to prevent gcc warning
commit b3e82ffb3f
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 14:04:02 2018 +0100
wiiu/render: Temporaneously disable formats other than RGBA8888 until the cause of bad colors is found
commit ef7d10e54e
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 01:05:06 2018 +0200
wiiu/render: Enable alpha merge/other settings
commit b413dafb06
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 00:49:10 2018 +0200
wiiu: Move coordinates math to shader
commit a7ee3dd532
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 27 21:55:00 2018 +0200
wiiu/render: Fix final bugs; it partially works now \o/
commit aa08e434c9
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 27 17:48:35 2018 +0200
wiiu/render: Fix GX2ContextState alignment
commit 0ea992080b
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 27 17:47:37 2018 +0200
wiiu/video: Add more attributes for texture
commit 769a4dd086
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 27 13:14:18 2018 +0200
wiiu/render: SDL_GetWindowSurface is needed to create the framebuffer
commit 3798398c51
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Thu Oct 25 17:16:23 2018 +0200
wiiu: Linking fixes
commit 888d0c5dca
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Wed Oct 24 21:59:02 2018 +0200
render/wiiu: Fix compiling, implement RenderCopyEx, make some render vars unique for objects, add missing shaders
commit 3cb1ed94bd
Author: Ash <ash@heyquark.com>
Date: Sun Oct 21 19:45:53 2018 +1100
render/wiiu: Start fixing up missing headers
commit 57639657db
Author: Ash <ash@heyquark.com>
Date: Sun Oct 21 19:35:09 2018 +1100
render: Start compiling the wiiu renderer (lotsa errors)
commit a1fe555cad
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Wed Oct 17 23:05:52 2018 +0200
wiiu: Add more renderer function, make functions non-static, start adding new shaders
commit d120ddd096
Author: Ash <ash@heyquark.com>
Date: Wed Oct 17 18:59:58 2018 +1100
wiiu/render: move drawing functions to own file
commit 273e19c2ce
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Wed Oct 17 00:05:10 2018 +0200
wiiu/render: Implement UpdateTexture/RenderClear
commit 4fa755d52f
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:59:44 2018 +1100
wiiu/render: Stub UpdateViewport / UpdateClipRect
commit 084e2b9efb
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:44:19 2018 +1100
wiiu/render: Implement SDL_LockTexture and SDL_UnlockTexture
commit a01adf4e00
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:33:37 2018 +1100
wiiu/render: Remove optional SetTextureMod functions
commit e5fae70caf
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:33:06 2018 +1100
wiiu/render: Move texture-related functions to own file
commit 0949442d7a
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:14:07 2018 +1100
wiiu/render: Implement GetOutputSize
commit 03826edb25
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:07:29 2018 +1100
wiiu/render: move window-related functions to own file
commit cea1907155
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 15:00:43 2018 +1100
wiiu/render: consolidate calls to SetRenderTarget, minor tweaks
commit c337fd57f5
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 14:42:37 2018 +1100
wiiu/render: Move function sigs and definitions to dedicated header
commit 036b864413
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 14:31:24 2018 +1100
wiiu/render: Minor formatting, move windowdata to header
commit 72a32e7ed4
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 14:18:31 2018 +1100
wiiu/video: move window data to header
commit 162447e20b
Author: Ash <ash@heyquark.com>
Date: Tue Oct 16 14:10:17 2018 +1100
wiiu: render: Be consistent about tabs/spaces
commit 53fd78a2fb
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 14 22:32:43 2018 +0200
wiiu: Implement more renderer functions (1)
commit 7850c3e054
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 13 22:37:22 2018 +0200
wiiu: Start implementing SDL_Renderer
commit 5ab6c7a9d7
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Oct 13 00:04:03 2018 +0200
wiiu: switch to tpNormal, tpFiltered1 casues scrolling issues
commit 541c794cd2
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Oct 9 20:26:55 2018 +0200
wiiu: Disable DRC surround mode as it causes distortion
commit 9b21f4847e
Author: Ash <ash@heyquark.com>
Date: Mon Oct 1 21:23:51 2018 +1000
video: Respect application's requested window size/position
commit 4846a24b0c
Author: Ash <ash@heyquark.com>
Date: Mon Oct 1 20:33:24 2018 +1000
video: move position buffer filling to UpdateWindowFramebuffer
commit c6ab8408cb
Author: Ash <ash@heyquark.com>
Date: Mon Oct 1 20:08:53 2018 +1000
video: oops
commit 60d802857d
Author: Ash <ash@heyquark.com>
Date: Mon Oct 1 20:07:32 2018 +1000
video: Style nits
commit a7da7f77b1
Author: Ash <ash@heyquark.com>
Date: Mon Oct 1 20:04:42 2018 +1000
video: start refactoring - move rendering to own function
commit 9b7b41d901
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Sep 30 16:29:14 2018 +0200
wiiu: switch to wut.mk
commit ec7653a805
Author: Ash <ash@heyquark.com>
Date: Sat Sep 29 20:55:44 2018 +1000
audio: DCFlushRange -> DCStoreRange
commit fb5bfa0a57
Author: Ash <ash@heyquark.com>
Date: Sat Sep 29 20:54:17 2018 +1000
audio: Send voice to TV
commit bfb51a0f00
Author: Ash <ash@heyquark.com>
Date: Sat Sep 29 20:07:22 2018 +1000
audio: Add *very* early wiiu audio support
commit a910c0765a
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Sep 23 10:48:00 2018 +0200
wiiu: explicitly set endianess in config (thanks @quarktheawesome) [needed for missing defines in toolchain]
commit 70f923cc91
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 22:47:56 2018 +0200
input/wiiu: switch back to VPADGetTPCalibratedPoint
commit 30a8901587
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:24:40 2018 +0200
threads/wiiu: fix crash on SDL_SYS_CreateThread: pass stack top and not stack bottom
commit 89a16883a7
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:23:23 2018 +0200
wiiu: enable thread support and stop building generic thread impl
commit 6ea16de7c6
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:22:25 2018 +0200
threads/wiiu: remove unused SDL_mutex structure definition and only build when requested
commit 189846753c
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:21:33 2018 +0200
threads/wiiu: implement SDL_CondWaitTimeout
commit 30b0133f83
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:18:10 2018 +0200
threads/wiiu: add sysmutex_c.h header
commit 5554ca04a8
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:17:39 2018 +0200
threads/wiiu: add generic thread storage
commit 494e81f4a9
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Fri Sep 21 20:17:15 2018 +0200
threads/wiiu: add semaphores
commit bbb8f558cc
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Tue Sep 18 21:12:43 2018 +0200
wiiu/input: Use raw for touchscreen and check for VPADRead errors
commit cbefaaa74a
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Sep 16 15:01:48 2018 +0200
Rewrite wiiu joystick driver to better match switch's and add touchscreen support
commit 856e271d2a
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Sep 16 14:58:17 2018 +0200
Do not send SDL_QUIT from WIIU_PumpEvents: it causes crashes and isn't the right way to do it
commit 5d221e72f1
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Sep 16 14:55:37 2018 +0200
Change shader include guard to match SDL
commit 9b777c083d
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sat Sep 15 23:43:02 2018 +0200
Switch to GX2!! (thanks to exjam for his help and toolchain and aliaspider for his shader!)
commit 572c0e4021
Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Date: Sun Oct 28 19:14:23 2018 +0100
Initial support for Nintendo WiiU
Co-authored-by: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com>
Co-authored-by: Ash Logan <ash@heyquark.com>
Co-authored-by: Kuruyia <Arc13@users.noreply.github.com>
Co-authored-by: Sergio Padrino <sergio.padrino@gmail.com>
2023-11-08 19:19:24 +00:00
Sam Lantinga
15ead9a40d
Updated to version 2.28.5 for release
2023-11-02 10:00:33 -07:00
Sam Lantinga
7ebfaa0ea2
Check to make sure the Windows joystick device has buttons and axes
...
This reverts commit e5a15f94e2f1a8fbbffb25ea9932cda9679a68fd.
It turns out removing this check allows mice like the ROG PUGIO II to show up as game controllers. We need to find a different way to differentiate between gaming mice and pedals.
Since these mice show up as controllers, and potentially causing games to use them instead of real controllers, we'll go ahead revert this change for now.
Reopens https://github.com/libsdl-org/SDL/issues/8227
(cherry picked from commit ad0af488837e44cbea0f0eab3b2f73b50a74bff4)
(cherry picked from commit 20ecd2afcb6a4ef6acb39505d307d42390e6a345)
2023-11-02 08:45:00 -07:00
Anonymous Maarten
5f4ddebf76
cmake: reset check state before testing -fobjc-arc
...
(cherry picked from commit 517db6d887e41cc091e71e290ac7ee2382119dd7)
2023-10-30 21:13:42 +01:00
Anonymous Maarten
0f8858cf2d
cmake: check -fobjc-arc compiler flag on Apple platforms
...
(cherry picked from commit 20630b2e6c02e40b5da12cccb7e74ef2b8fdfc08)
2023-10-30 19:57:02 +01:00
Anonymous Maarten
98abc15769
cmake: file(RELATIVE_PATH) needs 2 absolute paths
...
(cherry picked from commit 7774de0fe364fa997d58f2faa2199054d37bedf6)
2023-10-30 19:47:21 +01:00
Frank Praznik
746d74b140
wayland: Sanity check pointers and protocols before confining
...
(cherry picked from commit 875e45e70b4086ca8cdff405231fc616f06cda7e)
(cherry picked from commit 60e8ff16dc147780c7ffee030adc870b9e6042d1)
2023-10-29 14:32:02 -04:00
Frank Praznik
7d9595b14f
wayland: Check the relative pointer handle before destroying
...
If the relative protocol is unsupported, this will always be null and the destroy function won't be called.
(cherry picked from commit 0e87b71d08c75af8c4b02808038825d3b16bf854)
(cherry picked from commit 19c3e125ba71e4667743316f606872cc39f25a81)
2023-10-29 14:31:46 -04:00
Sam Lantinga
63d259edf0
Fixed making the EGL context current when resuming on Android
...
Make sure that we don't have the context cached as current on the current thread.
(cherry picked from commit 8b6da3c7017935932357a0decee84dc6167ace17)
(cherry picked from commit 832afa81a17098ec011cf3df14fdc9457ec8f36b)
2023-10-26 17:09:34 -07:00
Ozkan Sezer
fcd0c9843e
CI: change FreeBSD CI runner to cross-platform-actions.
2023-10-26 01:03:56 +03:00
Sam Lantinga
74b3959e04
Added support for the HP HyperX Clutch Gladiate controller
...
(cherry picked from commit f52b330ed84c477a94094302aa6a3baaca87019d)
(cherry picked from commit 1db0bd3fc053c5a444977cc1409cb5106e555252)
2023-10-25 09:02:04 -07:00
Sam Lantinga
a5df48514e
Added support for "%[]" sscanf syntax
...
Fixes https://github.com/libsdl-org/SDL/issues/8423
(cherry picked from commit 39a961ba41430788774f1b8c0e6d63f7308116e7)
(cherry picked from commit 4194a902e8d038fb5285d92dbaa72683a28cb31e)
2023-10-24 17:34:39 -07:00
Sam Lantinga
78d5fbf398
SDL_IsJoystickProductWheel() returns SDL_TRUE for Asetek wheelbases (thanks @IOBYTE!)
...
(cherry picked from commit e07f6c0a17fbf60eca96152036b2494d0cfafecd)
(cherry picked from commit d47c286b12eccee479ba57c8897092c6277ef962)
2023-10-23 10:44:44 -07:00
Sam Lantinga
5d66429cc3
Add missing error reporting in Android_JNI_FileOpen()
...
Fixes https://github.com/libsdl-org/SDL/issues/8427
(cherry picked from commit a844d909426153985136433f28ee5621affce97e)
(cherry picked from commit 259009a7ea3a8ec05d0e8f59b7909bb234e00f85)
2023-10-23 08:28:57 -07:00
Sam Lantinga
2ca041d294
Revert "Check to make sure the Windows joystick device has buttons and axes"
...
This reverts commit 642504bc5993a6acd4d9c1d4c1314c6b1cf6e4e1.
We have SDL_HINT_JOYSTICK_ROG_CHAKRAM to ignore or allow the ROG Chakram X mouse to be used as a joystick.
Fixes https://github.com/libsdl-org/SDL/issues/8227
(cherry picked from commit e5a15f94e2f1a8fbbffb25ea9932cda9679a68fd)
(cherry picked from commit e3e41b69a1060d87dfe635a35ed56cba23574aaa)
2023-10-22 09:24:44 -07:00
Cameron Gutman
b3f19b14d7
Check for device disconnection in HIDAPI_JoystickOpen()
...
HIDAPI joystick drivers may call HIDAPI_JoystickDisconnected() in their
UpdateDevice() function during HIDAPI_JoystickOpen(). If they do this
today, the opened joystick will end up partially initialized (no name,
path, mapping GUID, etc.) because HIDAPI_GetDeviceByIndex() will no
longer be able to find the SDL_HIDAPI_Device for the removed joystick.
Worse still, joystick->hwdata->device becomes a dangling freed pointer
the next time HIDAPI_UpdateDeviceList() is called. This leads to a UAF
when the application or SDL calls SDL_JoystickClose() on this joystick.
Fix all this by checking if the device no longer has any associated
joysticks after calling UpdateDevice() and failing the open call if so.
(cherry picked from commit 435e7ce663b7e568086c5dc0fb1bb889e41a3ed1)
(cherry picked from commit 4aab2342e9aabc7e506952dbe5e021f3d3604929)
2023-10-17 20:40:35 -07:00
Sylvain
a85cf62c12
Fix sdltest_randomAsciiStringWithMaximumLength() where it requests a string a size 0
...
seen with: ./testautomation --seed MILAFAP2AKVP3V4G --filter sdltest_randomAsciiStringWithMaximumLength
2023-10-13 20:24:48 +02:00
Ryan C. Gordon
5be746acbc
x11: Properly check for XInput2 support before using it.
...
This specifically fixes a crash in X11_WarpMouseInternal if XInput2 was
missing at runtime, but also cleans up a few other existing checks.
Fixes #8378 .
(cherry picked from commit 82f54af6177f3d50be1db42a528027ada6ea0a20)
(cherry picked from commit 2849ca404e040245e90fdf7b81e3878aa31204b5)
2023-10-11 01:11:01 -04:00
Anonymous Maarten
2abefb1c16
ci: stop FreeBSD job after 30 minutes
...
(cherry picked from commit aee4862958d3365d3995d017d4d3b4642edd6358)
2023-10-11 00:23:41 +02:00
Ozkan Sezer
6fc17b0e2b
artsaudio: revert bad arts_init return code check from commit ce5da5d.
2023-10-10 10:40:00 +03:00
Frank Praznik
1f7ec57d3b
wayland: Unref the libdecor window when hiding
...
Hiding the decorations while not unreferencing the frame was a workaround for an internal libdecor use-after-free bug that was fixed some time ago. Revert to unreferencing the window when hiding to ensure that it is properly destroyed.
Reverts dd2e318
2023-10-05 20:26:29 +02:00
Anonymous Maarten
36eb4845b5
triangle: don't read destination pixel when you're going to discard it anyways
2023-10-05 15:00:06 +02:00
Anonymous Maarten
d5ba5bb05f
blit_slow: don't read destination pixel when you're going to discard it anyways
...
(cherry picked from commit 4cd0c13823551cce279c9ff3d284c41c28deb3d8)
(cherry picked from commit 2d5c05a69cca65e0eb01b4bae23737fe970f7bb1)
2023-10-04 19:43:03 -07:00
Sam Lantinga
cc016b0046
Updated to version 2.28.4 for release
2023-10-01 12:05:05 -07:00
Anonymous Maarten
8c3fd5aec2
snd_pcm_plugin_flush was removed in QNX 7.1 and later
...
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:53:53 +02:00
Anonymous Maarten
24d145f4b6
cmake: add qnx support
...
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:53:53 +02:00
Anonymous Maarten
145ad48c0e
Allow the use of posix_spawn() instead of vfork/execlp()
...
Backport of #7041
Co-authored-by: elahav <elahav@users.noreply.github.com>
2023-09-30 16:53:53 +02:00
Simon McVittie
fd495bb57c
SDLTest_CompareSurfaces: Decode pixels correctly on big-endian platforms
...
Previously, if acting on a surface with less than 32 bits per pixel,
this code was placing the pixel value from the surface in the first
few bytes of the Uint32 to be decoded, and unrelated data from a
subsequent pixel in the remaining bytes.
Because SDL_GetRGBA takes the bits to be decoded from the
least-significant bits of the given value, ignoring the higher-order
bits if any, this happened to be correct on little-endian platforms,
where the first few bytes store the least-significant bits of an
integer.
However, it was incorrect on big-endian, where the first few bytes are
the most-significant bits of an integer.
The previous implementation also assumed that unaligned access to a
32-bit quantity is possible, which is not the case on all CPUs (but
happens to be true on x86).
These issues were not discovered until now because
SDLTest_CompareSurfaces() is only used in testautomation, which until
recently was not being run routinely at build-time, because it contained
other assumptions that can fail in an autobuilder or CI environment.
Resolves: https://github.com/libsdl-org/SDL/issues/8315
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit d95d2d7051e23271db7cec43134582834fb3ac8b)
(cherry picked from commit 6b5eadb10f02b51b400e710e2c95e9f0c2cb579c)
2023-09-29 06:57:07 -07:00
Sam Lantinga
d58fa94ee9
SDL_iconv_string() defaults to UTF-8
...
Fixes https://github.com/libsdl-org/SDL/issues/8287
(cherry picked from commit 1375d2049d9fd17cb0d9a47a0e256a42c3188f76)
(cherry picked from commit 9772d0512c8a0bb1841244ef9043e598ba0c0ff7)
2023-09-24 17:28:23 -07:00
Sam Lantinga
d691010686
Check for NULL before dereferencing newly allocated memory
...
Fixes https://github.com/libsdl-org/SDL/issues/8289
(cherry picked from commit 70a1bc69739016884a22abe6bf86f8a5deba29ef)
(cherry picked from commit 27f2df2292cceab64ff25f94efca5ec8bc5f1478)
2023-09-24 17:19:03 -07:00
Ryan C. Gordon
b93a8a86ab
emscripten: Restore compatibility with existing emsdk releases.
...
(cherry picked from commit 5008521538ffe7931ecd0d11c4a5e75a05f54b5b)
2023-09-20 14:37:56 -04:00
Jaswant Panchumarti
536f625bde
Use EM_ASM_PTR when the return value is a pointer
...
- closes https://github.com/libsdl-org/SDL/issues/8241
(cherry picked from commit 953b55dd6da1dd9fb937f3c67a18c5cab2988599)
2023-09-20 14:37:24 -04:00
Ozkan Sezer
1e18dc594e
update config.guess and config.sub from mainstream
2023-09-20 14:50:56 +03:00
Sam Lantinga
cc4973ea45
Fixed sensor timestamp units for third-party PS5 controllers
...
(cherry picked from commit a72dfa6a5fe8d8901175db852de8686b83487522)
(cherry picked from commit 37dee79b74723b7021ccaa946e31872f0539df4a)
2023-09-18 13:00:50 -07:00
Sam Lantinga
8114bd9108
Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’
...
Smart compilers don't like dereferencing off the end of arrays
(cherry picked from commit f6756047a4190d9c82222e4ec378bdb14a72f8d7)
(cherry picked from commit 62e7049a4f6eedc75d7ffb9cffc435f491f1577c)
2023-09-18 12:20:36 -07:00
Sam Lantinga
495fca1517
Fixed sensor timestamp calculation for third-party PS5 controllers
...
(cherry picked from commit 7059a55ccca04b75145c3d23a317fbe1eb77039e)
(cherry picked from commit fff3c2573a46b685f73646dc01937a88c35b3be6)
2023-09-18 11:59:00 -07:00
Sam Clegg
7d80e20883
emscripten: Add JS library dependencies using EM_JS_DEPS macro
...
See https://github.com/emscripten-core/emscripten/pull/19780
(cherry picked from commit 042243471fb7ecf6ba5e53f0ba35e825a8bb066a)
2023-09-15 15:29:47 -07:00
Guldoman
f3847c157a
x11: Always update clipboard owner
...
This allows utilities like clipboard managers to keep track of the
changes.
(cherry picked from commit 65aaf3a9ab9ec2be2973084060c2df5321b5acaa)
(cherry picked from commit 70a2ac2f1c1ce6509252ae588ba54fff31063f32)
2023-09-15 05:23:21 -07:00
Max Bachmann
b576e29d9b
detect fanatec steering wheels
...
(cherry picked from commit fd1c54a004250d844d82bb20ddfe75029585f53a)
(cherry picked from commit a8b9414697c3dece1605b2d1c146649c634eba54)
2023-09-12 15:36:41 -07:00
Anonymous Maarten
c7ad8e5431
cmake: make sure SDL_GetPrefPath is run before testfilesystem
...
60 seconds timeout ought to be sufficient.
2023-09-10 15:34:29 +02:00
Anonymous Maarten
9c8ee3a154
ci: run tests in parallel
2023-09-10 15:34:29 +02:00
Simon McVittie
d710e0be27
render: Enable clipping for zero-sized rectangles
...
Battle for Wesnoth apparently relies on being able to disable rendering
of UI elements by setting the clip rectangle to be empty.
Resolves: https://github.com/libsdl-org/SDL/issues/6896
Fixes: 00f05dcf "render: only enable clipping when the rectangle is valid"
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 8ad043fc38f09e5a88aca266ae6b70f572d66a1f)
2023-09-09 11:14:25 -07:00
Anonymous Maarten
b8d1f852db
cmake: use MSVC_RUNTIME_LIBRARY to force MT
2023-09-09 19:17:36 +02:00
Makarenko Oleg
e9ab663c43
Detect Simagic wheel bases as wheels ( #8198 )
...
Simagic DirectDrive wheel bases have the same vendor + product id's
(cherry picked from commit a2c1984d371e86e97bd6ffb176e835925e6afb3a)
(cherry picked from commit 1d495351a0944c598e78c130b635f9447b5bc871)
2023-09-04 12:12:37 -07:00
Oleg
c8d1de1a9b
Detect Logitech G923 Playstation as wheel
...
G923 have two different versions - Xbox version is already present in the wheel list, but not the PS version.
(cherry picked from commit 266b91d2fd2b3362d1828f8a6b58589bdaa4f75d)
(cherry picked from commit 365a36386ac18a2636c0d7b9597edb3644df0735)
2023-09-04 11:06:06 -07:00
Oleg
bf8c9cd6bf
Detect Logitech PRO Racing Wheel for Xbox (PC mode) as wheel
...
Logitech PRO Racing Wheel have two different versions - for Playstation and Xbox. Vendor + Product ID for Playstation version already present in SDL sources, but not an Xbox version
(cherry picked from commit cde67ea49ad812088bd5c8cfd67ef090ac1c1d86)
(cherry picked from commit 242b25aba47871a571457bc6e71ff4c89bbafc3b)
2023-09-04 11:02:09 -07:00
Sam Lantinga
8a5ba43d00
Updated to version 2.28.3 for release
2023-09-01 11:22:07 -07:00
Jeremy Demeule
c25a49c406
metal: Add hint to select low power device instead of the default one ( #8182 )
...
On some system like MacBook Pro Intel with AMD card, asking for the default device will always return the AMD GPU.
This is not an issue for 99% of the case when the renderer context is here to provide the maximum performance level like for game.
However, for video application using GPU for 1 quad and 1 texture, using the discrete GPU for that lead to an important power consumption (4 to 8W), heat increase, and fan noise.
With this patch, I successfully amend ffplay to only use the integrated GPU (i.e. the Intel one), instead of the discrete GPU (i.e. the AMD one).
(cherry picked from commit aa7ba629784ebf4a253cf78d85c286c310ad0cb5)
2023-08-31 01:55:40 -07:00
Anonymous Maarten
d46fdfa3ee
wayland: add SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL
2023-08-30 23:03:29 +02:00
Anonymous Maarten
787d339282
wayland: don't define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_* macro's
...
They mess with #ifdef conditional in headers.
2023-08-30 22:46:53 +02:00