You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
threedee/stuff/callbacks/callbacks.cpp

17 lines
295 B

#include "callbacks.h"
void callbacks::handleCallbacks(SDL_Event* eventHandler)
{
while (SDL_PollEvent(eventHandler))
{
switch (eventHandler->type)
{
case SDL_QUIT:
global::running = false;
break;
case SDL_MOUSEMOTION:
callbacks::mouseMotion(eventHandler);
break;
}
}
}