Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Nov 10, 2023
1 parent 15d8e21 commit 6671f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions front/libretro/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...) {
Expand Down Expand Up @@ -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[] = {
Expand Down
4 changes: 2 additions & 2 deletions front/libretro/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6671f16

Please sign in to comment.