Allegro 5 api
#include <allegro5/allegro.h> void al_uninstall_mouse(void)
Uninstalls the active mouse driver, if any. This will automatically unregister the mouse event source with any event queues.
This function is automatically called when Allegro is shut down.