Skip to content

Commit

Permalink
wip2
Browse files Browse the repository at this point in the history
  • Loading branch information
vadosnaprimer committed Nov 10, 2024
1 parent ea5f3f6 commit 9e07c85
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions waterbox/uae/bizhawk.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ ECL_EXPORT void FrameAdvance(MyFrameInfo* f)
joymousecounter(port);
break;
case CONTROLLER_MOUSE:
setmousestate(port, AXIS_HORIZONTAL, controller->MouseX - last_mouse_x[port], MOUSE_RELATIVE);
setmousestate(port, AXIS_VERTICAL, controller->MouseY - last_mouse_y[port], MOUSE_RELATIVE);
mouse_delta[port][AXIS_HORIZONTAL] = controller->MouseX - last_mouse_x[port];
mouse_delta[port][AXIS_VERTICAL] = controller->MouseY - last_mouse_y[port];
break;
}

mouse_deltanoreset[port][0] = 1;
mouse_deltanoreset[port][1] = 1;
}

for (int i = 0; i < KEY_COUNT; i++)
Expand Down
2 changes: 2 additions & 0 deletions waterbox/uae/bizhawk.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ extern int retro_max_diwlastword;
extern int cd32_pad_enabled[NORMAL_JPORTS];
extern int joybutton[MAX_JPORTS];
extern int joydir[MAX_JPORTS];
extern uae_s16 mouse_delta[MAX_JPORTS][4];
extern uae_s16 mouse_deltanoreset[MAX_JPORTS][4];

extern int umain(int argc, char **argv);
extern int m68k_go(int may_quit, int resume);
Expand Down
2 changes: 1 addition & 1 deletion waterbox/uae/libretro-uae

0 comments on commit 9e07c85

Please sign in to comment.