// Copyright (C) 2013 Jérôme Leclercq // This file is part of the "Nazara Engine - Utility module" // For conditions of distribution and use, see copyright notice in Config.hpp // Interface inspirée de la SFML par Laurent Gomila #pragma once #ifndef NAZARA_MOUSE_HPP #define NAZARA_MOUSE_HPP #include #include class NzWindow; class NAZARA_API NzMouse { public: enum Button { Left, Middle, Right, XButton1, XButton2, Max = XButton2 }; static NzVector2i GetPosition(); static NzVector2i GetPosition(const NzWindow& relativeTo); static bool IsButtonPressed(Button button); static void SetPosition(const NzVector2i& position); static void SetPosition(const NzVector2i& position, const NzWindow& relativeTo, bool ignoreEvent = true); static void SetPosition(int x, int y); static void SetPosition(int x, int y, const NzWindow& relativeTo, bool ignoreEvent = true); }; #endif // NAZARA_MOUSE_HPP