src/EventHandler.cpp
/**
 * MF_MouseEventPress is a function which
 * handles the mouse press events.
 *
 */
MF_MouseEventPress is a function which
handles the mouse press events.
MF_MouseEventPress is a function which handles the mouse press events .
void MF_MouseEventPress(SDL_EventType type, int button, int buttonstate,  int x, int y)
{
    int cy = SCREEN_HEIGHT - y; 
    switch(button)
    {
        case SDL_BUTTON_LEFT:
            Widget_HandleButtonStateChanges(type, button, buttonstate, x, cy);
        break;
        default:
        break;
    }
}
void MF_MouseEventPress ( SDL_EventType type , int button , int buttonstate , int x , int y ) { int cy = SCREEN_HEIGHT - y ; switch ( button ) { case SDL_BUTTON_LEFT : Widget_HandleButtonStateChanges ( type , button , buttonstate , x , cy ) ; break ; default : break ; } }
MF_MouseEventPress is a function which
 handles the mouse press events.
MF_MouseEventPress is a function which handles the mouse press events .
/*Flip the coordinates.*/