//index Assigner Function
int IndexAssigner(int clicktype, int index)
{
int xm;
int ym;
SDL_GetMouseState(&xm,&ym);
if(clicktype == 1)
{
//Index 1
if(xm <= 100 && ym <= 100)
{
cout << "Hello this is a test" << endl;
index = 1;
cout << index << endl;
}
//Index 2
if(xm >= 200 && ym >= 200)
{
cout << "Hello this is a test 2" << endl;
index = 2;
cout << index << endl;
}
}
return index;
}