Skip to content

Commit

Permalink
Fix #211
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed Aug 5, 2024
1 parent 45c9eb9 commit c3956d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ event(const sapp_event *ev)
switch (ev->type) {
case SAPP_EVENTTYPE_UNFOCUSED: th_input_reset(); break;
case SAPP_EVENTTYPE_MOUSE_MOVE:
thg->mouse_delta = (th_vf2){.x = ev->mouse_dx, .y = ev->mouse_dy};
thg->mouse_delta.x += ev->mouse_dx;
thg->mouse_delta.y += ev->mouse_dy;
thg->mouse = (th_vf2){.x = ev->mouse_x, .y = ev->mouse_y};
break;
case SAPP_EVENTTYPE_CHAR:
Expand Down

0 comments on commit c3956d8

Please sign in to comment.