SDL Calling a function in a event
Another problem that i have. I want to call a function ( void set_roll() ) in a event that happens when the left mouse button is pressed. The thing is that nothing happens. I click the left mouse button and it shud call a function to do seomething but nothing happens. Please help how do i have to put the function so that it will work.
Quote:Original post by RedReaper132
Another problem that i have. I want to call a function ( void set_roll() ) in a event that happens when the left mouse button is pressed. The thing is that nothing happens. I click the left mouse button and it shud call a function to do seomething but nothing happens. Please help how do i have to put the function so that it will work.
I don't know what you're talking about because you haven't provided any code.
But have you done the basics: set a break point in that function? Or a simple statement that prints something to the console?
Furthermore, what "event", are you talking about? Are you talked about an msvc event? A GLUT mouse callback? Something else entirely? Do you have any other functions to verify that the event is set up correctly?
My guess is that you didn't set the event up correctly.
My guess is that you didn't set the event up correctly.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement