Commit graph

30 commits

Author SHA1 Message Date
Clownacy
7261106be8 Wii U: Swap X and Y buttons 2020-04-21 14:03:43 +01:00
Clownacy
b2a0ad089f Move Wii U shaders 2020-04-21 13:02:06 +01:00
Clownacy
69e0d868a0 Added font rendering to Wii U 2020-04-21 12:45:37 +01:00
Clownacy
8377f011cf Add in-progress hardware Wii U renderer
*Very* incomplete. Right now, it can render textures and perform
colour-fills to the screen.
2020-04-21 00:59:12 +01:00
Clownacy
e40de4992f Wii U cleanup 2020-04-20 14:54:31 +01:00
Clownacy
2978db4d30 More cleanup 2020-04-20 12:48:42 +01:00
Clownacy
2f7db28da8 Wii U backend cleanup 2020-04-20 12:46:36 +01:00
Clownacy
5ca12ae22a Tweak Wii U coordinates 2020-04-20 12:42:50 +01:00
Clownacy
65b470ba20 It seems we don't need the colour-buffer (Wii U) 2020-04-20 12:39:55 +01:00
Clownacy
e470b91501 Cleanup and documentation 2020-04-20 02:46:46 +01:00
Clownacy
a112001886 Add complete shader sources 2020-04-20 02:15:55 +01:00
Clownacy
f2ffab48e1 Make Wii U controls more Nintendo-y 2020-04-20 01:35:08 +01:00
Clownacy
76dc1f81ec Fix Wii U Pro Controller input oddities 2020-04-19 21:27:32 +01:00
Clownacy
e667844801 Fix Pro Controller support 2020-04-19 21:19:02 +01:00
Clownacy
ba65ebf3fe Add Wii U Pro Controller support
The controller doesn't seem to want to connect yet though.
2020-04-19 21:00:19 +01:00
Clownacy
91bda89661 Restore proper 4:3 aspect ratio 2020-04-19 20:48:48 +01:00
Clownacy
cfe523589d Add the blooming Wii U shader
Geez, this has been missing for ages.
2020-04-19 19:46:01 +01:00
Clownacy
9e9b86c6e9 Add new Wii U window backend
This uses basic hardware-acceleration to bounce the software-rendered
frame to both the gamepad *and* the TV!

The previous method only supported the gamepad, suffered from V-tear,
and used slightly more CPU (my test with the end of Egg Corridor ran
at 52FPS, while this new method runs at 55FPS).
2020-04-19 13:34:45 +01:00
Clownacy
617f7a25d4 Wii U video tweaks and fixes 2020-04-17 23:42:18 +01:00
Clownacy
670f49db77 Optimise Wii U video code a little 2020-04-17 18:07:54 +01:00
Clownacy
c2a857d4f5 Flush the screen buffer on Wii U
Weird cache stuff I don't know
2020-04-17 15:51:27 +01:00
Clownacy
24bcbb8dfd Upscale 320x240 to 640x480 on the Wii U
For performance reasons, I'm going to switch to 320x240 for Wii U
builds.
2020-04-17 14:15:59 +01:00
Clownacy
c38a8aa857 Read files from SD/CSE2-portable on Wii U 2020-04-15 22:12:41 +01:00
Clownacy
763e4a9986 Vertically center screen on Wii U 2020-04-15 22:10:40 +01:00
Clownacy
a983417771 Update Wii U backend 2020-04-15 22:03:59 +01:00
Clownacy
7ca33677f8 Remove some old junk 2020-04-15 21:52:13 +01:00
Clownacy
c93ed6a014 Comment-out unused #include 2020-04-15 18:42:02 +01:00
Clownacy
b5eefd95f0 Change Wii U input to keyboard emulation
The keyboard API allows me to bind multiple buttons to the direction
keys, unlike the controller API. I probably need to rethink the
controller API at some point.
2020-04-15 02:16:13 +01:00
Clownacy
470a51219e Fix WiiU builds with LTO enabled
For some reason, LTO affects how `ReadVPAD` handles failure, causing
it to spam gamepad button inputs. With proper error-checking, this is
fixed.
2020-04-14 03:50:33 +01:00
Clownacy
6d53668bed Add Wii U platform backend
With this backend, CSE2 can run on the Wii U.

It's not ideal - it doesn't have its own renderer yet, so it just
uses the software renderer, and it only displays on the gamepad,
because drawing to the TV as well makes the game lag.

Also there's no sound.

Also the lack of input rebinding is annoying.
2020-04-14 00:31:13 +01:00