From 6671f167e7f005289f2add353c889c6a212fcefc Mon Sep 17 00:00:00 2001 From: Andreas 'phix' Jonsson Date: Fri, 10 Nov 2023 17:40:06 +0100 Subject: [PATCH] Minor cleanup --- front/libretro/core.c | 4 ++-- front/libretro/mouse.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/front/libretro/core.c b/front/libretro/core.c index 15b29bf1..4ca1d2a5 100644 --- a/front/libretro/core.c +++ b/front/libretro/core.c @@ -96,7 +96,7 @@ bool joystick_push_event(struct vxt_pirepheral *p, const struct frontend_joystic struct vxt_pirepheral *joystick_create(vxt_allocator *alloc, void *frontend, const char *args); // From mouse.c -struct vxt_pirepheral *mouse_create(vxt_allocator *alloc); +struct vxt_pirepheral *mouse_create(vxt_allocator *alloc, void *frontend, const char *args); bool mouse_push_event(struct vxt_pirepheral *p, const struct frontend_mouse_event *ev); static void no_log(enum retro_log_level level, const char *fmt, ...) { @@ -346,7 +346,7 @@ void retro_init(void) { disk = vxtu_disk_create(&realloc, &intrf); ppi = vxtu_ppi_create(&realloc); cga = cga_create(&realloc); - mouse = mouse_create(&realloc); // COM1 + mouse = mouse_create(&realloc, NULL, "0x3F8"); // COM1 joystick = joystick_create(&realloc, NULL, "0x201"); struct vxt_pirepheral *devices[] = { diff --git a/front/libretro/mouse.c b/front/libretro/mouse.c index 1be5bd78..0c36847d 100644 --- a/front/libretro/mouse.c +++ b/front/libretro/mouse.c @@ -22,8 +22,8 @@ #include "../../modules/mouse/mouse.c" -struct vxt_pirepheral *mouse_create(vxt_allocator *alloc) { - return create(alloc, NULL, "0x3F8"); +struct vxt_pirepheral *mouse_create(vxt_allocator *alloc, void *frontend, const char *args) { + return create(alloc, frontend, args); } bool mouse_push_event(struct vxt_pirepheral *p, const struct frontend_mouse_event *ev) {