OpenMiner/source/core/Mouse.cpp

23 lines
547 B
C++

/*
* =====================================================================================
*
* Filename: Mouse.cpp
*
* Description:
*
* Created: 20/12/2014 15:39:17
*
* Author: Quentin Bazin, <quent42340@gmail.com>
*
* =====================================================================================
*/
#include "Config.hpp"
#include "Mouse.hpp"
Window *Mouse::s_window = nullptr;
void Mouse::resetToWindowCenter() {
SDL_WarpMouseInWindow(s_window->window(), SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2);
}