OpenMiner/include/core/Mouse.hpp

34 lines
714 B
C++
Raw Normal View History

2014-12-20 16:22:52 +01:00
/*
* =====================================================================================
*
* Filename: Mouse.hpp
*
2018-06-05 01:24:54 +02:00
* Description:
2014-12-20 16:22:52 +01:00
*
* Created: 20/12/2014 15:38:51
*
* Author: Quentin Bazin, <quent42340@gmail.com>
2014-12-20 16:22:52 +01:00
*
* =====================================================================================
*/
#ifndef MOUSE_HPP_
#define MOUSE_HPP_
#include "Types.hpp"
#include "Window.hpp"
2014-12-20 16:22:52 +01:00
class Mouse {
public:
static void resetToWindowCenter();
2018-06-05 01:24:54 +02:00
static void setWindow(Window *window) { s_window = window; }
2018-06-05 01:24:54 +02:00
static void setCursorVisible(bool isVisible);
static void setCursorGrabbed(bool isGrabbed);
2014-12-20 16:22:52 +01:00
private:
static Window *s_window;
2014-12-20 16:22:52 +01:00
};
#endif // MOUSE_HPP_