Skip to content
SDL2 for the Nintendo Wii U (build with "cmake [SDL source path] -DCMAKE_TOOLCHAIN_FILE=$WUT_ROOT/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu")
C Objective-C C++ Shell Java CMake Other
Branch: wiiu-2.0.9
Clone or download
Pull request Compare This branch is 114 commits ahead, 905 commits behind SDL-mirror:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
VisualC-WinRT
VisualC Added display event files to the Visual Studio projects Aug 23, 2018
Xcode-iOS Don't build SDL_JOYSTICK_HIDAPI by default on iOS Oct 26, 2018
Xcode
acinclude
android-project-ant
android-project
build-scripts use less ancient versions of autofoo scripts Oct 18, 2018
cmake
debian
docs
include video/wiiu: Add flags to only draw on TV or Gamepad (#1) Apr 29, 2019
src
test test: Makefile should copy .dat files for testoverlay2. Sep 2, 2018
visualtest ran 'chmod -x' on many files Jun 12, 2018
wayland-protocols
.gitignore add gitignore (sorry) Apr 29, 2019
.hgignore First pass on the new SDL sensor API Aug 21, 2018
.hgtags
Android.mk
BUGS.txt BUGS.txt: Changed mailing list link to discourse.libsdl.org. Apr 1, 2017
CMakeLists.txt cmake: Don't link against stub libraries Nov 21, 2019
COPYING.txt Updated copyright for 2018 Jan 3, 2018
CREDITS.txt Added Julian Winter to the credits for the SDL 2.0 website. Aug 12, 2013
INSTALL.txt
Makefile.in
Makefile.minimal Added a dummy sensor driver Aug 21, 2018
Makefile.os2
Makefile.pandora Added a dummy sensor driver Aug 21, 2018
Makefile.psp
Makefile.wiiu
Makefile.wiz Added a dummy sensor driver Aug 21, 2018
README-SDL.txt More HTTPS changes in the documentation. Feb 16, 2017
README.md
README.txt
SDL2.spec.in
SDL2Config.cmake
TODO.txt
VisualC.html Fixed two typos in documentation. Jan 12, 2016
WhatsNew.txt Added patch note for SDL_GameControllerGetPlayerIndex() and friends Oct 26, 2018
autogen.sh
cmake_uninstall.cmake.in
configure Mark a subsystem as dummy, not disabled, if it was intended to be com… Sep 29, 2018
configure.in
sdl2-config.cmake.in Applied Ubuntu patch bug_822210_fix_sdl2-config.cmake_whitespace.patch Oct 7, 2016
sdl2-config.in Revert fix for bug 1392 because it breaks linking with mingw32 Oct 21, 2013
sdl2.m4
sdl2.pc.in

README.md

SDL2 for Wii U

About

This project is a port of the SDL software development library to the Nintendo Wii U video game console, built for the wut toolchain. Currently it implements support for audio, joystick (gamepad), touchscreen (gamepad), video (gx2), hardware accelerated rendering (gx2), timers and threading.

Installing

Prebuilt versions of sdl2, along with other sdl2 libraries (gfx, image, mixer, ttf), are available on the wiiu-fling pacman repository. Please reffer to these instructions to set up wiiu-fling.

Building on Linux

In order to build sdl2 for wiiu, you'll need to install some prerequisites:

  • devkitPPC (make sure to export $DEVKITPRO)
  • wut (make sure to export $WUT_ROOT)
  • cmake

Clone and enter the wiiu sdl repo:

$ git clone https://github.com/yawut/SDL.git
$ cd SDL

Prepare for the build:

$ mkdir build && cd build

Build:

$ cmake ../ -DCMAKE_TOOLCHAIN_FILE=$DEVKITPRO/wut/share/wut.toolchain.cmake -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu
$ make

Install (might need to run as sudo depending on $DEVKITPRO/portlibs/wiiupermissions):

$ make install

Credits:

  • rw-r-r-0644, quarktheawesome, exjam: wiiu sdl2 port and libraries
  • wiiu homebrew contributors
  • sdl mantainters
  • inspired by libnx/libtransistor sdl2 ports
You can’t perform that action at this time.