Skip to content

Commit ce181dd

Browse files
authored
demo: Handle forcible cursor moving in allegro demo (#817)
1 parent 1b83899 commit ce181dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

demo/allegro5/nuklear_allegro5.h

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

0 commit comments

Comments
 (0)