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.h

18 lines
369 B

#pragma once
#include <iostream>
#include "SDL.h"
#include "../globals/globals.h"
namespace callbacks
{
inline void mouseMotion(SDL_Event* eventResponse)
{
global::mousePos = vector2(eventResponse->motion.x, eventResponse->motion.y);
}
inline void quit(SDL_Event* eventResponse)
{
global::running = false;
}
void handleCallbacks(SDL_Event* eventHandler);
}