changeset 2003:4c418ee9a9d8 tip

Added Wii U controller image
author Mike Pavone <pavone@retrodev.com>
date Sun, 19 Jul 2020 18:10:40 -0700
parents fc8fd89aeba9
children
files images/wiiu.png nuklear_ui/blastem_nuklear.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file images/wiiu.png has changed
--- a/nuklear_ui/blastem_nuklear.c	Tue Jul 14 20:19:47 2020 -0700
+++ b/nuklear_ui/blastem_nuklear.c	Sun Jul 19 18:10:40 2020 -0700
@@ -31,7 +31,7 @@
 	struct nk_image  ui;
 } ui_image;
 
-static ui_image **ui_images, *controller_360, *controller_ps4, *controller_ps4_6b;
+static ui_image **ui_images, *controller_360, *controller_ps4, *controller_ps4_6b, *controller_wiiu;
 static uint32_t num_ui_images, ui_image_storage;
 
 typedef void (*view_fun)(struct nk_context *);
@@ -981,6 +981,8 @@
 		return controller_ps4_6b;
 	} else if (info->type == TYPE_PSX) {
 		return controller_ps4;
+	} else if (info->type == TYPE_NINTENDO) {
+		return controller_wiiu;
 	} else {
 		return controller_360;
 	}
@@ -2310,6 +2312,7 @@
 	controller_360 = load_ui_image("images/360.png");
 	controller_ps4 = load_ui_image("images/ps4.png");
 	controller_ps4_6b = load_ui_image("images/ps4_6b.png");
+	controller_wiiu = load_ui_image("images/wiiu.png");
 	
 	texture_init();