#include #include #include #ifndef MOUSE_FUNCTION #define MOUSE_FUNCTION class mouse_function { public: mouse_function() { //something, right now this class is just to see if mouse is hovering over a position // later on it will expand to do other things } bool mouse_hovering(int x,int y, int width,int height) { if(mouse_x>=x && mouse_y>=y && mouse_x<=(x+width) && mouse_y<=(y+height)) { return true; } else { return false; } } }; #endif