Code

screen_interface: add method mouse(), replacing CMD_MOUSE_EVENT
[ncmpc.git] / src / main.c
index 11e46e4a698bef6c81717468ed20ea72cc446e44..eccb5a004c8a114f98966270447278dcbdbf439d 100644 (file)
@@ -280,6 +280,16 @@ do_input_event(command_t cmd)
        return true;
 }
 
+#ifdef HAVE_GETMOUSE
+
+void
+do_mouse_event(int x, int y, mmask_t bstate)
+{
+       screen_mouse(mpd, x, y, bstate);
+}
+
+#endif
+
 #ifndef NCMPC_MINI
 /**
  * Check the configured key bindings for errors, and display a status