1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/inc/input/mouse.hpp

29 lines
658 B
C++
Raw Normal View History

2024-04-16 19:27:05 -03:00
#ifndef XNA_INPUT_MOUSE_HPP
#define XNA_INPUT_MOUSE_HPP
#include "../default.hpp"
namespace xna {
struct IMouseState {
2024-04-17 09:48:48 -03:00
ButtonState LeftButton{ ButtonState::Released };
ButtonState RightButton{ ButtonState::Released };
ButtonState MiddleButton{ ButtonState::Released };
ButtonState XButton1{ ButtonState::Released };
ButtonState XButton2{ ButtonState::Released };
2024-04-16 19:27:05 -03:00
int X{ 0 };
int Y{ 0 };
int ScroolWheelValue{ 0 };
};
class IMouse {
public:
virtual ~IMouse() {}
static MouseState GetState();
static bool IsConnected();
static bool IsVisible();
static void IsVisible(bool value);
static void ResetScrollWheel();
};
}
#endif