OpenMiner/include/core/Mouse.hpp

43 lines
843 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
*
* Version: 1.0
* Created: 20/12/2014 15:38:51
* Revision: none
* Compiler: gcc
*
* Author: Quentin BAZIN, <quent42340@gmail.com>
2018-06-05 01:24:54 +02:00
* Company:
2014-12-20 16:22:52 +01:00
*
* =====================================================================================
*/
#ifndef MOUSE_HPP_
#define MOUSE_HPP_
#include "Types.hpp"
class Mouse {
public:
static void reset();
static void update(s32 x, s32 y, s32 dx, s32 dy);
2018-06-05 01:24:54 +02:00
2014-12-20 16:22:52 +01:00
static s32 getX() { return x; }
static s32 getY() { return y; }
2018-06-05 01:24:54 +02:00
2014-12-20 16:22:52 +01:00
static s32 getDX() { return dx; }
static s32 getDY() { return dy; }
2018-06-05 01:24:54 +02:00
2014-12-20 16:22:52 +01:00
private:
static s32 x;
static s32 y;
2018-06-05 01:24:54 +02:00
2014-12-20 16:22:52 +01:00
static s32 dx;
static s32 dy;
};
#endif // MOUSE_HPP_