34 lines
717 B
C++
34 lines
717 B
C++
/*
|
|
* =====================================================================================
|
|
*
|
|
* Filename: Mouse.hpp
|
|
*
|
|
* Description:
|
|
*
|
|
* Created: 20/12/2014 15:38:51
|
|
*
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
|
*
|
|
* =====================================================================================
|
|
*/
|
|
#ifndef MOUSE_HPP_
|
|
#define MOUSE_HPP_
|
|
|
|
#include "IntTypes.hpp"
|
|
#include "Window.hpp"
|
|
|
|
class Mouse {
|
|
public:
|
|
static void resetToWindowCenter();
|
|
|
|
static void setWindow(Window *window) { s_window = window; }
|
|
|
|
static void setCursorVisible(bool isVisible);
|
|
static void setCursorGrabbed(bool isGrabbed);
|
|
|
|
private:
|
|
static Window *s_window;
|
|
};
|
|
|
|
#endif // MOUSE_HPP_
|