0

could any one help me on SDL_GetMouseState(0,0)........ my coding is as below

if(SDL_GetMouseState(0,0)&SDL_BUTTON(SDL_BUTTON_LEFT))
{
//function calls
}

this coding works button when i click on the window the contents remain only till the button is in pressed state........

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by jaai
0

i just passed used a flag value in the GetMouseState if condition and checked the flag value to call the functions and it works.........

if(SDL_GetMouseState(0,0)&SDL_BUTTON(SDL_BUTTON_LEFT))
         flag=1;
if(flag==1)
//function calls
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.