Commit Graph

56 Commits

Author SHA1 Message Date
GaryOderNichts
6cee733415
wiiu: update drivers for 2.0.22 2023-11-08 19:19:31 +00:00
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
3f1fd5abff Updated source to match SDL function prototype style 2023-05-23 10:59:03 -07:00
Sam Lantinga
0d76380042 Code style: changed "sizeof foo" to "sizeof(foo)" (thanks @sezero!)
(cherry picked from commit c6443d86c92e962683a1efe5f123a144988875b5)
2023-03-09 15:23:59 -08:00
Sam Lantinga
0479df53ca Updated copyright for 2023 2023-01-09 09:48:21 -08:00
Sam Lantinga
b8d85c6939 Update for SDL3 coding style (#6717)
I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base.

In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted.

The script I ran for the src directory is added as build-scripts/clang-format-src.sh

This fixes:
#6592
#6593
#6594

(cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
2022-11-30 12:57:41 -08:00
Sylvain Becker
fb0ce375f0 Cleanup add brace (#6545)
* Add braces after if conditions

* More add braces after if conditions

* Add braces after while() conditions

* Fix compilation because of macro being modified

* Add braces to for loop

* Add braces after if/goto

* Move comments up

* Remove extra () in the 'return ...;' statements

* More remove extra () in the 'return ...;' statements

* More remove extra () in the 'return ...;' statements after merge

* Fix inconsistent patterns are xxx == NULL vs !xxx

* More "{}" for "if() break;"  and "if() continue;"

* More "{}" after if() short statement

* More "{}" after "if () return;" statement

* More fix inconsistent patterns are xxx == NULL vs !xxx

* Revert some modificaion on SDL_RLEaccel.c

* SDL_RLEaccel: no short statement

* Cleanup 'if' where the bracket is in a new line

* Cleanup 'while' where the bracket is in a new line

* Cleanup 'for' where the bracket is in a new line

* Cleanup 'else' where the bracket is in a new line

(cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
2022-11-28 12:33:03 -08:00
Pierre Wendling
655275378d N3DS port (squashed)
A dedicated renderer using Citro3D would likely allow for better
much better graphical performances.
2022-10-10 08:50:59 -07:00
Sam Clegg
cfab203f91 emscripten: Remove use of EM_ASM from SDL_timer code.
Instead use the native emscripten timer API.

See https://github.com/emscripten-core/emscripten/issues/17941
2022-09-30 13:41:41 -04:00
chalonverse
f317d619cc
Xbox GDKX support (#5869)
* Xbox GDK support (14 squashed commits)

* Added basic keyboard testing

* Update readme

* Code review fixes

* Fixed issue where controller add/removal wasn't working (since the device notification events don't work on Xbox, have to use the joystick thread to poll XInput)
2022-07-01 13:59:14 -07:00
Pierre Wendling
f25b4b2774 Style: Flip if statement. 2022-06-27 15:19:40 -07:00
Pierre Wendling
6c536afdb7 Fix C89 declaration for macOS modules.
Since Clang 14, `-Wdeclaration-after-statement` is enforced on every
standard.
2022-06-27 15:19:40 -07:00
Francisco Javier Trujillo Mata
217d3a6dab Add systimer support 2022-06-15 15:15:26 -07:00
Michael Fitzmayer
fbd230bb6c
Add support for the Nokia N-Gage (#5597)
* Add initial support for the Nokia N-Gage

* N-Gage: disable clipping for the time being, issue needs to be resolved later

* Move va_copy definition to SDL_internal.h

* Move stdlib.h include to SDL_config_ngage.h, much cleaner this way

* Remove redundant include, add HAVE_STDLIB_H

* Revert "N-Gage: disable clipping for the time being, issue needs to be resolved later"

This reverts commit 4f5f0fc36cc7f34fad05e45671dfa7b8dc32fd51.

* N-Gage: fix clipping issue by providing proper math functions
2022-05-03 08:51:49 -07:00
pionere
f708cebe10 fix os2 timer in fallback mode 2022-04-12 17:01:20 +03:00
Charlie Birks
99af3281ee timer: Fix Emscripten declaration-after-statement error 2022-01-22 12:27:54 +00:00
Sam Lantinga
120c76c84b Updated copyright for 2022 2022-01-03 09:40:21 -08:00
Wouter Wijsman
21fd0047e3 Initial for building PSP version with CMake 2021-12-07 14:03:00 +03:00
Sylvain
c7065bf42f
Fix warning: declaration shadows a local variable 2021-11-09 13:33:24 +01:00
Charlie Birks
d950b9e2d9
emscripten: Make timers work (if used with emscripten_set_main_loop)
Co-authored-by: aidanhs <aidanhs@cantab.net>
2021-11-07 15:40:54 -05:00
Sam Lantinga
8593076da7 Fixed whitespace 2021-11-02 16:04:36 -07:00
Brick
62629c2b5d Fix 64-bit timeval/timespec delta calculations 2021-11-02 16:02:18 -07:00
Ryan C. Gordon
2379c52849 os/2: Don't try to be clever with the 32-bit GetTicks fallback. 2021-11-01 14:28:00 -04:00
Ryan C. Gordon
cca79d32a2 android: Patched SDL_GetTicks64() to compile. 2021-11-01 14:28:00 -04:00
Ryan C. Gordon
affb183ea4 unix: Fixed SDL_GetTicks64 function signature. 2021-11-01 14:28:00 -04:00
Ryan C. Gordon
99c9727dc0 timer: Added SDL_GetTicks64(), for a timer that doesn't wrap every ~49 days.
Note that this removes the timeGetTime() fallback on Windows; it is a
32-bit counter and SDL2 should never choose to use it, as it only is needed
if QueryPerformanceCounter() isn't available, and QPC is _always_ available
on Windows XP and later.

OS/2 has a similar situation, but since it isn't clear to me that similar
promises can be made about DosTmrQueryTime() even in modern times, I decided
to leave the fallback in, with some heroic measures added to try to provide a
true 64-bit tick counter despite the 49-day wraparound. That approach can
migrate to Windows too, if we discover some truly broken install that doesn't
have QPC and still depends on timeGetTime().

Fixes #4870.
2021-11-01 14:28:00 -04:00
Ivan Epifanov
a4ddb175f1 Formatting 2021-03-08 09:07:12 -08:00
Ivan Epifanov
7d89f09f74 ISO C90 fixes 2021-03-08 09:07:12 -08:00
Ivan Epifanov
3ac2242e65 Fix PerformanceCounter 2021-03-08 09:07:12 -08:00
Ivan Epifanov
2d64e37e41 Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
Sam Lantinga
2426949a18 Removed support for clock_gettime_nsec_np()
SDL_GetTicks() was broken and it's not adding any real value here.
2021-02-10 10:22:19 -05:00
Sam Lantinga
96cfb81232 Fixed bug 5467 - SDL sys timer Mac OS update proposal
David Carlier

Change of api from 2016 which reduce code complexity a bit.
2021-01-24 00:51:25 -05:00
Sam Lantinga
9130f7c377 Updated copyright for 2021 2021-01-02 10:25:38 -08:00
Sam Lantinga
cb36189692 Fixed bug 5235 - All internal sources should include SDL_assert.h
Ryan C. Gordon

We should really stick this in SDL_internal.h or something so it's always available.
2020-12-09 07:16:22 -08:00
Ozkan Sezer
a90f0400a5 os2: a _lot_ of coding style cleanup, sot that they match the SDL style.
also renamed the 'debug' macro to debug_os2: the former was dangerously
a common name.

the binary (dll) output is precisely the same as before.
2020-10-15 21:37:30 +03:00
Ozkan Sezer
1d9cf23e4c os2: updated copyright dates for 2020. header guard fixes. 2020-10-14 23:01:05 +03:00
Ozkan Sezer
74cfb81dbb os2: add port files for SDL2-2.0.4 from Andrey Vasilkin
only geniconv/iconv.h (was from LGPL libiconv) is replaced with a generic
minimal iconv.h based on public knowledge.
2020-10-14 23:01:00 +03:00
Sylvain Beucler
e594a6738a emscripten: Introduce SDL_HINT_EMSCRIPTEN_ASYNCIFY
See https://github.com/emscripten-core/emscripten/issues/10746

and

https://github.com/emscripten-ports/SDL2/pull/112

Fixes Bugzilla #4997.
2020-06-27 16:25:47 -04:00
Sylvain Beucler
01af7b0254 emscripten: support pseudo-synchronous screen refresh and events update using asyncify 2020-06-27 16:22:50 -04:00
Sam Lantinga
a8780c6a28 Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
Sam Lantinga
5e13087b0f Updated copyright for 2019 2019-01-04 22:01:14 -08:00
Sylvain Becker
7468d1e096 Fix warnings detected on Android build 2018-12-06 15:46:40 +01:00
Micha? Janiszewski
91820998fc Add and update include guards
Include guards in most changed files were missing, I added them keeping
the same style as other SDL files. In some cases I moved the include
guards around to be the first thing the header has to take advantage of
any possible improvements compiler may have for inclusion guards.
2018-10-28 21:36:48 +01:00
Sam Lantinga
e3cc5b2c6b Updated copyright for 2018 2018-01-03 10:03:25 -08:00
Sam Lantinga
de91b1248f Fixed bug 3745 - specify SDLCALL as the calling convention for API callbacks
Patches contributed by Ozkan Sezer
2017-08-14 06:28:21 -07:00
Sam Lantinga
72ab258812 Fixed bug 2764 - Timer is not rescheduled with the returned interval
afwlehmann

Sorry for re-opening, but it turns out that the current interval is indeed not updated. I've just checked the source code of the 2.0.3 release again:

   163	    if (current->canceled) {
   164	        interval = 0;
   165	    } else {
   166	        interval = current->callback(current->interval, current->param);
   167	    }
   168
   169	    if (interval > 0) {
   170	        /* Reschedule this timer */
   171	        current->interval = interval; // <-- this line is missing
   172	        current->scheduled = tick + interval;
   173	        SDL_AddTimerInternal(data, current);
   174	    } else {

According to the documentation: "The callback function is passed the current timer interval and the user supplied parameter from the SDL_AddTimer() call and returns the next timer interval. If the returned value from the callback is 0, the timer is canceled."

If I understand the text correctly, then the current interval should in fact be updated according to the returned value. Otherwise there would be a discrepancy between the next time for which the timer is actually re-scheduled and the value that's passed to the callback once the timer fires again.

This could be fixed by adding line #171.
2017-08-13 21:48:40 -07:00
Sam Lantinga
ca5c304814 Fixed bug 3744 - missing SDLCALL in several functions
Ozkan Sezer

The attached patch adds missing SDLCALL to several functions, so that
they properly match the headers as intended.
2017-08-13 21:06:52 -07:00
Philipp Wiesemann
84aeab17a2 haiku: Changed header paths to be more compatible. 2017-07-29 23:00:14 +02:00
Sam Lantinga
45b774e3f7 Updated copyright for 2017 2017-01-01 18:33:28 -08:00
Sam Lantinga
57d01d7d67 Patch from Sylvain to fix clang warnings 2016-11-13 22:57:41 -08:00