mirror of
https://github.com/yawut/SDL.git
synced 2026-09-13 19:45:57 -05:00
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) commiteb05b491c1Author: Ash Logan <ash@heyquark.com> Date: Thu Apr 23 21:20:23 2020 +1000 video/wiiu: Don't replace an already running ProcUI commite3d2191889Author: Ash Logan <ash@heyquark.com> Date: Sun Jan 5 12:49:02 2020 +1100 render/wiiu: respect SDL_RENDERER_PRESENTVSYNC commita9be38d3a1Author: Ash Logan <ash@heyquark.com> Date: Thu Nov 21 13:52:07 2019 +1100 cmake: Don't link against stub libraries commit71e63524fcAuthor: Ash Logan <ash@heyquark.com> Date: Thu Nov 21 13:38:45 2019 +1100 audio/wiiu: Add maps for mono and stereo audio commitf7568b7d97Author: Ash Logan <ash@heyquark.com> Date: Thu Nov 21 13:01:12 2019 +1100 joystick/wiiu: Add player index support commit26290a65a6Author: 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 commit7c235083d0Author: 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 commitd929c75f0bAuthor: 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 commitfa6d0c47b8Author: 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) commit0c51093c68Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com> Date: Sun May 26 15:46:07 2019 +0200 Update build instructions commit0eaa9070a2Author: Ash Logan <ash@heyquark.com> Date: Sun Mar 24 21:07:14 2019 +1100 joystick/wiiu: Add support for WPAD/KPAD controllers commit776380a70fAuthor: 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 commit564c25b52fAuthor: Ash Logan <ash@heyquark.com> Date: Sun Mar 24 19:01:21 2019 +1100 joystick/wiiu: Hotplug support (gamepad only) commitd3c3ee1e98Author: Ash Logan <ash@heyquark.com> Date: Sat May 4 20:35:42 2019 +1000 big oops: missed a merge conflict on 2.0.9 commitf2e83587adAuthor: 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 commitbf5e9a1cd5Author: 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 commit6ba2f62f38Author: 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 commit14bbb4a0f1Author: 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 commitc349a79696Author: 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 commitfb9cda3712Author: 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 withfd92b81to fix crashes commit4388bea3adAuthor: 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! commitd4f823db47Author: 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 commit74a42de67bAuthor: 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 commit87fbbbec7eAuthor: 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 commitceb9f1c096Author: 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 commit7a02c03542Author: 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 commit7507d2b9a2Author: 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 commit7446bdc731Author: 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 commitfcb1d21683Author: 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 commiteba4263f00Author: 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 commitdcb58351f0Author: Ash Logan <ash@heyquark.com> Date: Fri Mar 8 11:23:03 2019 +1100 render/wiiu: Textures keep their own colour buffers commit8c4b5c066eAuthor: 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 commitda762c2f05Author: Ash Logan <ash@heyquark.com> Date: Thu Mar 7 21:59:49 2019 +1100 video/wiiu: Add support for DRC/TV only windows (#1) commitf814e40fcfAuthor: 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) commitb6873f94f4Author: 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 commitd58f563d65Author: 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 commit73ba941733Author: Ash Logan <ash@heyquark.com> Date: Wed Mar 6 19:53:43 2019 +1100 render/wiiu: Use vec* for FillRects (fixes no-draw bug) commit482fa50607Author: Ash Logan <ash@heyquark.com> Date: Wed Mar 6 19:05:58 2019 +1100 render/wiiu: Fix present position/texcoord confusion commit2b640b8e7bAuthor: Ash Logan <ash@heyquark.com> Date: Wed Mar 6 17:52:57 2019 +1100 render/wiiu: Respect window sizes commitb17164d5f6Author: Ash Logan <ash@heyquark.com> Date: Wed Mar 6 15:43:40 2019 +1100 render/wiiu: Handle window size changes commit89013edb6cAuthor: Ash Logan <ash@heyquark.com> Date: Wed Mar 6 09:17:45 2019 +1100 render/wiiu: readability - introduce vec* structs for drawing commite147fbab72Author: Ash Logan <ash@heyquark.com> Date: Tue Mar 5 22:27:45 2019 +1100 render/wiiu: Fix resource flags on texture creation commit72d34778d6Author: Ash Logan <ash@heyquark.com> Date: Tue Mar 5 22:27:13 2019 +1100 render/wiiu: Convert RenderData to use GX2RBuffers commitca33399a70Author: 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 commitfa157dbcaaAuthor: Ash Logan <ash@heyquark.com> Date: Tue Mar 5 12:00:41 2019 +1100 video/wiiu: Remove the last of the emulated framebuffer commite713fb41d1Author: Ash Logan <ash@heyquark.com> Date: Wed Feb 20 22:37:39 2019 +1100 render/wiiu: FLUSH THE CACHE. FLUSH THE CACHE. commitaebe08cf45Author: Ash Logan <ash@heyquark.com> Date: Wed Feb 20 21:44:15 2019 +1100 video/wiiu: Call SDL_SetKeyboardFocus on window creation commitfab05b5179Author: 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 commit5137bdb29fAuthor: 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 commit6824fb4284Author: 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 commitd3ad23e0cdAuthor: 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 commite88463592dAuthor: 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 commit2022692d60Author: 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 commitb0defceb9bAuthor: Ash Logan <ash@heyquark.com> Date: Sat Jan 12 20:57:21 2019 +1100 add gitignore (sorry) commit4134be1cb8Author: 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 commitcbc64b5f3eAuthor: Ash Logan <ash@heyquark.com> Date: Thu Jan 3 17:04:26 2019 +1100 render: Add loads of GX2 texture formats commitdd77800d1cAuthor: Ash Logan <ash@heyquark.com> Date: Thu Jan 3 13:41:40 2019 +1100 include: Add extra checks for endian on devkitPPC commit3e20fffb49Author: Ash <ash@heyquark.com> Date: Tue Nov 6 21:12:17 2018 +1100 render/wiiu: Safety checks on SDL_DestroyTexture commit6b2e8b9113Author: 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 commit94a46ebb35Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com> Date: Tue Oct 30 22:04:29 2018 +0100 wiiu: Switch to cmake commit9bee9180c2Author: 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 commit463b9e07e4Author: 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 commit37f2ef8682Author: 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 commitb3e82ffb3fAuthor: 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 commitef7d10e54eAuthor: 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 commitb413dafb06Author: 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 commita7ee3dd532Author: 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/ commitaa08e434c9Author: 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 commit0ea992080bAuthor: 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 commit769a4dd086Author: 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 commit3798398c51Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com> Date: Thu Oct 25 17:16:23 2018 +0200 wiiu: Linking fixes commit888d0c5dcaAuthor: 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 commit3cb1ed94bdAuthor: Ash <ash@heyquark.com> Date: Sun Oct 21 19:45:53 2018 +1100 render/wiiu: Start fixing up missing headers commit57639657dbAuthor: Ash <ash@heyquark.com> Date: Sun Oct 21 19:35:09 2018 +1100 render: Start compiling the wiiu renderer (lotsa errors) commita1fe555cadAuthor: 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 commitd120ddd096Author: Ash <ash@heyquark.com> Date: Wed Oct 17 18:59:58 2018 +1100 wiiu/render: move drawing functions to own file commit273e19c2ceAuthor: 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 commit4fa755d52fAuthor: Ash <ash@heyquark.com> Date: Tue Oct 16 15:59:44 2018 +1100 wiiu/render: Stub UpdateViewport / UpdateClipRect commit084e2b9efbAuthor: Ash <ash@heyquark.com> Date: Tue Oct 16 15:44:19 2018 +1100 wiiu/render: Implement SDL_LockTexture and SDL_UnlockTexture commita01adf4e00Author: Ash <ash@heyquark.com> Date: Tue Oct 16 15:33:37 2018 +1100 wiiu/render: Remove optional SetTextureMod functions commite5fae70cafAuthor: Ash <ash@heyquark.com> Date: Tue Oct 16 15:33:06 2018 +1100 wiiu/render: Move texture-related functions to own file commit0949442d7aAuthor: Ash <ash@heyquark.com> Date: Tue Oct 16 15:14:07 2018 +1100 wiiu/render: Implement GetOutputSize commit03826edb25Author: Ash <ash@heyquark.com> Date: Tue Oct 16 15:07:29 2018 +1100 wiiu/render: move window-related functions to own file commitcea1907155Author: Ash <ash@heyquark.com> Date: Tue Oct 16 15:00:43 2018 +1100 wiiu/render: consolidate calls to SetRenderTarget, minor tweaks commitc337fd57f5Author: Ash <ash@heyquark.com> Date: Tue Oct 16 14:42:37 2018 +1100 wiiu/render: Move function sigs and definitions to dedicated header commit036b864413Author: Ash <ash@heyquark.com> Date: Tue Oct 16 14:31:24 2018 +1100 wiiu/render: Minor formatting, move windowdata to header commit72a32e7ed4Author: Ash <ash@heyquark.com> Date: Tue Oct 16 14:18:31 2018 +1100 wiiu/video: move window data to header commit162447e20bAuthor: Ash <ash@heyquark.com> Date: Tue Oct 16 14:10:17 2018 +1100 wiiu: render: Be consistent about tabs/spaces commit53fd78a2fbAuthor: 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) commit7850c3e054Author: 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 commit5ab6c7a9d7Author: 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 commit541c794cd2Author: 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 commit9b21f4847eAuthor: Ash <ash@heyquark.com> Date: Mon Oct 1 21:23:51 2018 +1000 video: Respect application's requested window size/position commit4846a24b0cAuthor: Ash <ash@heyquark.com> Date: Mon Oct 1 20:33:24 2018 +1000 video: move position buffer filling to UpdateWindowFramebuffer commitc6ab8408cbAuthor: Ash <ash@heyquark.com> Date: Mon Oct 1 20:08:53 2018 +1000 video: oops commit60d802857dAuthor: Ash <ash@heyquark.com> Date: Mon Oct 1 20:07:32 2018 +1000 video: Style nits commita7da7f77b1Author: Ash <ash@heyquark.com> Date: Mon Oct 1 20:04:42 2018 +1000 video: start refactoring - move rendering to own function commit9b7b41d901Author: 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 commitec7653a805Author: Ash <ash@heyquark.com> Date: Sat Sep 29 20:55:44 2018 +1000 audio: DCFlushRange -> DCStoreRange commitfb5bfa0a57Author: Ash <ash@heyquark.com> Date: Sat Sep 29 20:54:17 2018 +1000 audio: Send voice to TV commitbfb51a0f00Author: Ash <ash@heyquark.com> Date: Sat Sep 29 20:07:22 2018 +1000 audio: Add *very* early wiiu audio support commita910c0765aAuthor: 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] commit70f923cc91Author: 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 commit30a8901587Author: 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 commit89a16883a7Author: 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 commit6ea16de7c6Author: 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 commit189846753cAuthor: 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 commit30b0133f83Author: 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 commit5554ca04a8Author: 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 commit494e81f4a9Author: rw-r-r-0644 <r.r.qwertyuiop.r.r@gmail.com> Date: Fri Sep 21 20:17:15 2018 +0200 threads/wiiu: add semaphores commitbbb8f558ccAuthor: 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 commitcbefaaa74aAuthor: 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 commit856e271d2aAuthor: 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 commit5d221e72f1Author: 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 commit9b777c083dAuthor: 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!) commit572c0e4021Author: 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>
This commit is contained in:
committed by
Dave Murphy
parent
15ead9a40d
commit
f36cf7c86f
@@ -329,6 +329,7 @@
|
||||
#cmakedefine SDL_AUDIO_DRIVER_PSP @SDL_AUDIO_DRIVER_PSP@
|
||||
#cmakedefine SDL_AUDIO_DRIVER_PS2 @SDL_AUDIO_DRIVER_PS2@
|
||||
#cmakedefine SDL_AUDIO_DRIVER_N3DS @SDL_AUDIO_DRIVER_N3DS@
|
||||
#cmakedefine SDL_AUDIO_DRIVER_WIIU @SDL_AUDIO_DRIVER_WIIU@
|
||||
|
||||
/* Enable various input drivers */
|
||||
#cmakedefine SDL_INPUT_LINUXEV @SDL_INPUT_LINUXEV@
|
||||
@@ -355,6 +356,7 @@
|
||||
#cmakedefine SDL_JOYSTICK_PSP @SDL_JOYSTICK_PSP@
|
||||
#cmakedefine SDL_JOYSTICK_PS2 @SDL_JOYSTICK_PS2@
|
||||
#cmakedefine SDL_JOYSTICK_N3DS @SDL_JOYSTICK_N3DS@
|
||||
#cmakedefine SDL_JOYSTICK_WIIU @SDL_JOYSTICK_WIIU@
|
||||
#cmakedefine SDL_HAPTIC_DUMMY @SDL_HAPTIC_DUMMY@
|
||||
#cmakedefine SDL_HAPTIC_LINUX @SDL_HAPTIC_LINUX@
|
||||
#cmakedefine SDL_HAPTIC_IOKIT @SDL_HAPTIC_IOKIT@
|
||||
@@ -390,6 +392,7 @@
|
||||
#cmakedefine SDL_THREAD_PSP @SDL_THREAD_PSP@
|
||||
#cmakedefine SDL_THREAD_PS2 @SDL_THREAD_PS2@
|
||||
#cmakedefine SDL_THREAD_N3DS @SDL_THREAD_N3DS@
|
||||
#cmakedefine SDL_THREAD_WIIU @SDL_THREAD_WIIU@
|
||||
|
||||
/* Enable various timer systems */
|
||||
#cmakedefine SDL_TIMER_HAIKU @SDL_TIMER_HAIKU@
|
||||
@@ -401,6 +404,7 @@
|
||||
#cmakedefine SDL_TIMER_PSP @SDL_TIMER_PSP@
|
||||
#cmakedefine SDL_TIMER_PS2 @SDL_TIMER_PS2@
|
||||
#cmakedefine SDL_TIMER_N3DS @SDL_TIMER_N3DS@
|
||||
#cmakedefine SDL_TIMER_WIIU @SDL_TIMER_WIIU@
|
||||
|
||||
/* Enable various video drivers */
|
||||
#cmakedefine SDL_VIDEO_DRIVER_ANDROID @SDL_VIDEO_DRIVER_ANDROID@
|
||||
@@ -423,6 +427,7 @@
|
||||
#cmakedefine SDL_VIDEO_DRIVER_RISCOS @SDL_VIDEO_DRIVER_RISCOS@
|
||||
#cmakedefine SDL_VIDEO_DRIVER_PSP @SDL_VIDEO_DRIVER_PSP@
|
||||
#cmakedefine SDL_VIDEO_DRIVER_PS2 @SDL_VIDEO_DRIVER_PS2@
|
||||
#cmakedefine SDL_VIDEO_DRIVER_WIIU @SDL_VIDEO_DRIVER_WIIU@
|
||||
|
||||
#cmakedefine SDL_VIDEO_DRIVER_KMSDRM @SDL_VIDEO_DRIVER_KMSDRM@
|
||||
#cmakedefine SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC @SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC@
|
||||
@@ -467,6 +472,7 @@
|
||||
#cmakedefine SDL_VIDEO_RENDER_VITA_GXM @SDL_VIDEO_RENDER_VITA_GXM@
|
||||
#cmakedefine SDL_VIDEO_RENDER_PS2 @SDL_VIDEO_RENDER_PS2@
|
||||
#cmakedefine SDL_VIDEO_RENDER_PSP @SDL_VIDEO_RENDER_PSP@
|
||||
#cmakedefine SDL_VIDEO_RENDER_WIIU @SDL_VIDEO_RENDER_WIIU@
|
||||
|
||||
/* Enable OpenGL support */
|
||||
#cmakedefine SDL_VIDEO_OPENGL @SDL_VIDEO_OPENGL@
|
||||
|
||||
167
include/SDL_config_wiiu.h
Normal file
167
include/SDL_config_wiiu.h
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
Simple DirectMedia Layer
|
||||
Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
#ifndef SDL_config_wiiu_h_
|
||||
#define SDL_config_wiiu_h_
|
||||
#define SDL_config_h_
|
||||
|
||||
#include "SDL_platform.h"
|
||||
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
|
||||
#endif
|
||||
|
||||
#define HAVE_GCC_ATOMICS 1
|
||||
|
||||
#define STDC_HEADERS 1
|
||||
#define HAVE_ALLOCA_H 1
|
||||
#define HAVE_CTYPE_H 1
|
||||
#define HAVE_INTTYPES_H 1
|
||||
#define HAVE_LIMITS_H 1
|
||||
#define HAVE_MATH_H 1
|
||||
#define HAVE_SIGNAL_H 1
|
||||
#define HAVE_STDINT_H 1
|
||||
#define HAVE_STDIO_H 1
|
||||
#define HAVE_STRING_H 1
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* C library functions */
|
||||
#define HAVE_MALLOC 1
|
||||
#define HAVE_CALLOC 1
|
||||
#define HAVE_REALLOC 1
|
||||
#define HAVE_FREE 1
|
||||
#define HAVE_ALLOCA 1
|
||||
#define HAVE_GETENV 1
|
||||
#define HAVE_SETENV 1
|
||||
#define HAVE_PUTENV 1
|
||||
#define HAVE_SETENV 1
|
||||
#define HAVE_UNSETENV 1
|
||||
#define HAVE_QSORT 1
|
||||
#define HAVE_ABS 1
|
||||
#define HAVE_BCOPY 1
|
||||
#define HAVE_MEMSET 1
|
||||
#define HAVE_MEMCPY 1
|
||||
#define HAVE_MEMMOVE 1
|
||||
#define HAVE_MEMCMP 1
|
||||
#define HAVE_STRLEN 1
|
||||
#define HAVE_STRLCPY 1
|
||||
#define HAVE_STRLCAT 1
|
||||
#define HAVE_STRCHR 1
|
||||
#define HAVE_STRRCHR 1
|
||||
#define HAVE_STRSTR 1
|
||||
#define HAVE_STRTOL 1
|
||||
#define HAVE_STRTOUL 1
|
||||
#define HAVE_STRTOLL 1
|
||||
#define HAVE_STRTOULL 1
|
||||
#define HAVE_STRTOD 1
|
||||
#define HAVE_ATOI 1
|
||||
#define HAVE_ATOF 1
|
||||
#define HAVE_STRCMP 1
|
||||
#define HAVE_STRNCMP 1
|
||||
#define HAVE_STRCASECMP 1
|
||||
#define HAVE_STRNCASECMP 1
|
||||
#define HAVE_VSSCANF 1
|
||||
#define HAVE_VSNPRINTF 1
|
||||
#define HAVE_M_PI 1
|
||||
#define HAVE_ACOS 1
|
||||
#define HAVE_ACOSF 1
|
||||
#define HAVE_ASIN 1
|
||||
#define HAVE_ASINF 1
|
||||
#define HAVE_ATAN 1
|
||||
#define HAVE_ATANF 1
|
||||
#define HAVE_ATAN2 1
|
||||
#define HAVE_ATAN2F 1
|
||||
#define HAVE_CEIL 1
|
||||
#define HAVE_CEILF 1
|
||||
#define HAVE_COPYSIGN 1
|
||||
#define HAVE_COPYSIGNF 1
|
||||
#define HAVE_COS 1
|
||||
#define HAVE_COSF 1
|
||||
#define HAVE_EXP 1
|
||||
#define HAVE_FABS 1
|
||||
#define HAVE_FABSF 1
|
||||
#define HAVE_FLOOR 1
|
||||
#define HAVE_FLOORF 1
|
||||
#define HAVE_FMOD 1
|
||||
#define HAVE_FMODF 1
|
||||
#define HAVE_LOG 1
|
||||
#define HAVE_LOGF 1
|
||||
#define HAVE_LOG10 1
|
||||
#define HAVE_LOG10F 1
|
||||
#define HAVE_POW 1
|
||||
#define HAVE_POWF 1
|
||||
#define HAVE_SCALBN 1
|
||||
#define HAVE_SCALBNF 1
|
||||
#define HAVE_SIN 1
|
||||
#define HAVE_SINF 1
|
||||
#define HAVE_SQRT 1
|
||||
#define HAVE_SQRTF 1
|
||||
#define HAVE_TAN 1
|
||||
#define HAVE_TANF 1
|
||||
#define HAVE_SETJMP 1
|
||||
#define HAVE_NANOSLEEP 1
|
||||
/* #define HAVE_SYSCONF 1 */
|
||||
/* #define HAVE_SIGACTION 1 */
|
||||
|
||||
|
||||
/* Wii U isn't that sophisticated */
|
||||
#define LACKS_SYS_MMAN_H 1
|
||||
|
||||
/* Wii U thread support (src/thread/wiiu/\*.c) */
|
||||
#define SDL_THREAD_WIIU 1
|
||||
#define SDL_THREADS_DISABLED 0
|
||||
|
||||
/* Wii U timer support (src/timer/wiiu/\*.c) */
|
||||
#define SDL_TIMER_WIIU 1
|
||||
|
||||
/* Wii U joystick driver (src/joystick/wiiu/\*.c) */
|
||||
#define SDL_JOYSTICK_WIIU 1
|
||||
|
||||
/* Enable the wiiu audio driver (src/audio/wiiu/\*.c) */
|
||||
#define SDL_AUDIO_DRIVER_WIIU 1
|
||||
|
||||
/* Wii U video dirver */
|
||||
#define SDL_VIDEO_DRIVER_WIIU 1
|
||||
|
||||
/* Wii U render driver (src/render/wiiu/\*.c) */
|
||||
#define SDL_VIDEO_RENDER_WIIU 1
|
||||
|
||||
/* There's no battery for the console unit */
|
||||
#define SDL_POWER_DISABLED 1
|
||||
|
||||
/* !!! FIXME: what does Wii U do for filesystem stuff? */
|
||||
#define SDL_FILESYSTEM_DUMMY 1
|
||||
|
||||
/* Wii U does have an haptic device, but it's not ported to sdl yet (src/haptic/dummy/\*.c) */
|
||||
#define SDL_HAPTIC_DISABLED 1
|
||||
|
||||
/* Wii U can't load shared object (src/loadso/dummy/\*.c) */
|
||||
#define SDL_LOADSO_DISABLED 1
|
||||
|
||||
/* Hack: for some reason some arch defines are missing in the
|
||||
toolchain, so SDL_endian.h will think we're little endian
|
||||
without that */
|
||||
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
||||
|
||||
|
||||
#endif /* SDL_config_wiiu_h_ */
|
||||
@@ -79,7 +79,7 @@ _m_prefetch(void *__P)
|
||||
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
||||
(defined(__MIPS__) && defined(__MIPSEB__)) || \
|
||||
defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \
|
||||
defined(__sparc__)
|
||||
defined(__sparc__) || defined(_BIG_ENDIAN) || (__BIG_ENDIAN__ == 1)
|
||||
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
||||
#else
|
||||
#define SDL_BYTEORDER SDL_LIL_ENDIAN
|
||||
|
||||
@@ -200,6 +200,10 @@
|
||||
#if defined(PS2)
|
||||
#define __PS2__ 1
|
||||
#endif
|
||||
#if defined(__WIIU__)
|
||||
#undef __WIIU__
|
||||
#define __WIIU__ 1
|
||||
#endif
|
||||
|
||||
/* The NACL compiler defines __native_client__ and __pnacl__
|
||||
* Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi
|
||||
|
||||
@@ -40,6 +40,9 @@
|
||||
#elif defined(__VITA__)
|
||||
#define DEFAULT_WINDOW_WIDTH 960
|
||||
#define DEFAULT_WINDOW_HEIGHT 544
|
||||
#elif defined(__WIIU__)
|
||||
#define DEFAULT_WINDOW_WIDTH 1280
|
||||
#define DEFAULT_WINDOW_HEIGHT 720
|
||||
#else
|
||||
#define DEFAULT_WINDOW_WIDTH 640
|
||||
#define DEFAULT_WINDOW_HEIGHT 480
|
||||
|
||||
Reference in New Issue
Block a user