Can you show me a bit of code how you mean. I'm not really understanding. Is it something like:
Like that from the LazyFoo tutorial? Or how do I do this. The only thing Í want to do is to say if the mouse is in position (On the start button) and the user has clicked the left mouse button the program should start the game.
//The attributes of the button
//The part of the button sprite sheet that will be shown
//Initialize the variables
Button( int x, int y, int w, int h );
//Handles events and set the button's sprite region
//Shows the button on the screen