Switch from Nz prefix to namespace Nz
What a huge commit Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
@@ -15,43 +15,46 @@
|
||||
|
||||
#include <Nazara/Utility/Debug.hpp>
|
||||
|
||||
NzVector2i NzMouse::GetPosition()
|
||||
namespace Nz
|
||||
{
|
||||
return NzEventImpl::GetMousePosition();
|
||||
}
|
||||
|
||||
NzVector2i NzMouse::GetPosition(const NzWindow& relativeTo)
|
||||
{
|
||||
return NzEventImpl::GetMousePosition(relativeTo);
|
||||
}
|
||||
|
||||
bool NzMouse::IsButtonPressed(Button button)
|
||||
{
|
||||
return NzEventImpl::IsMouseButtonPressed(button);
|
||||
}
|
||||
|
||||
void NzMouse::SetPosition(const NzVector2i& position)
|
||||
{
|
||||
NzEventImpl::SetMousePosition(position.x, position.y);
|
||||
}
|
||||
|
||||
void NzMouse::SetPosition(const NzVector2i& position, const NzWindow& relativeTo, bool ignoreEvent)
|
||||
{
|
||||
if (ignoreEvent && position.x > 0 && position.y > 0)
|
||||
relativeTo.IgnoreNextMouseEvent(position.x, position.y);
|
||||
|
||||
NzEventImpl::SetMousePosition(position.x, position.y, relativeTo);
|
||||
}
|
||||
|
||||
void NzMouse::SetPosition(int x, int y)
|
||||
{
|
||||
NzEventImpl::SetMousePosition(x, y);
|
||||
}
|
||||
|
||||
void NzMouse::SetPosition(int x, int y, const NzWindow& relativeTo, bool ignoreEvent)
|
||||
{
|
||||
if (ignoreEvent && x > 0 && y > 0)
|
||||
relativeTo.IgnoreNextMouseEvent(x, y);
|
||||
|
||||
NzEventImpl::SetMousePosition(x, y, relativeTo);
|
||||
Vector2i Mouse::GetPosition()
|
||||
{
|
||||
return EventImpl::GetMousePosition();
|
||||
}
|
||||
|
||||
Vector2i Mouse::GetPosition(const Window& relativeTo)
|
||||
{
|
||||
return EventImpl::GetMousePosition(relativeTo);
|
||||
}
|
||||
|
||||
bool Mouse::IsButtonPressed(Button button)
|
||||
{
|
||||
return EventImpl::IsMouseButtonPressed(button);
|
||||
}
|
||||
|
||||
void Mouse::SetPosition(const Vector2i& position)
|
||||
{
|
||||
EventImpl::SetMousePosition(position.x, position.y);
|
||||
}
|
||||
|
||||
void Mouse::SetPosition(const Vector2i& position, const Window& relativeTo, bool ignoreEvent)
|
||||
{
|
||||
if (ignoreEvent && position.x > 0 && position.y > 0)
|
||||
relativeTo.IgnoreNextMouseEvent(position.x, position.y);
|
||||
|
||||
EventImpl::SetMousePosition(position.x, position.y, relativeTo);
|
||||
}
|
||||
|
||||
void Mouse::SetPosition(int x, int y)
|
||||
{
|
||||
EventImpl::SetMousePosition(x, y);
|
||||
}
|
||||
|
||||
void Mouse::SetPosition(int x, int y, const Window& relativeTo, bool ignoreEvent)
|
||||
{
|
||||
if (ignoreEvent && x > 0 && y > 0)
|
||||
relativeTo.IgnoreNextMouseEvent(x, y);
|
||||
|
||||
EventImpl::SetMousePosition(x, y, relativeTo);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user