Skip to content

Commit 49a68f5

Browse files
committed
Handle forcible cursor moving in allegro demo
1 parent 171090c commit 49a68f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/allegro5/nuklear_allegro5.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,8 @@ nk_allegro5_handle_event(ALLEGRO_EVENT *ev)
354354
al_acknowledge_resize(ev->display.source);
355355
return 1;
356356
} break;
357-
case ALLEGRO_EVENT_MOUSE_AXES: {
357+
case ALLEGRO_EVENT_MOUSE_AXES:
358+
case ALLEGRO_EVENT_MOUSE_WARPED: {
358359
nk_input_motion(ctx, ev->mouse.x, ev->mouse.y);
359360
if (ev->mouse.dz != 0) {
360361
nk_input_scroll(ctx, nk_vec2(0,(float)ev->mouse.dz / al_get_mouse_wheel_precision()));

0 commit comments

Comments
 (0)