diff options
author | Mike Pavone <pavone@retrodev.com> | 2020-07-19 18:10:40 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2020-07-19 18:10:40 -0700 |
commit | ff73b22ed9ade6d863c408dd5a6218750870fa03 (patch) | |
tree | 469b45b7de25f22c92b78be3e91946191350ba88 /nuklear_ui | |
parent | 27bd24482253a98264675597863c2e6af3880885 (diff) |
Added Wii U controller image
Diffstat (limited to 'nuklear_ui')
-rw-r--r-- | nuklear_ui/blastem_nuklear.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuklear_ui/blastem_nuklear.c b/nuklear_ui/blastem_nuklear.c index 99464e8..9acb849 100644 --- a/nuklear_ui/blastem_nuklear.c +++ b/nuklear_ui/blastem_nuklear.c @@ -31,7 +31,7 @@ typedef struct 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 @@ static ui_image *select_best_image(controller_info *info) 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 @@ void blastem_nuklear_init(uint8_t file_loaded) 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(); |