Merge branch 'master' into vulkan
This commit is contained in:
@@ -4,15 +4,7 @@
|
||||
|
||||
#include <Nazara/Platform/Mouse.hpp>
|
||||
#include <Nazara/Platform/Window.hpp>
|
||||
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
#include <Nazara/Platform/Win32/InputImpl.hpp>
|
||||
#elif defined(NAZARA_PLATFORM_X11)
|
||||
#include <Nazara/Platform/X11/InputImpl.hpp>
|
||||
#else
|
||||
#error Lack of implementation: Mouse
|
||||
#endif
|
||||
|
||||
#include <Nazara/Platform/SDL2/InputImpl.hpp>
|
||||
#include <Nazara/Platform/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
@@ -32,6 +24,11 @@ namespace Nz
|
||||
return EventImpl::IsMouseButtonPressed(button);
|
||||
}
|
||||
|
||||
bool Mouse::SetRelativeMouseMode(bool relativeMouseMode)
|
||||
{
|
||||
return EventImpl::SetRelativeMouseMode(relativeMouseMode);
|
||||
}
|
||||
|
||||
void Mouse::SetPosition(const Vector2i& position)
|
||||
{
|
||||
EventImpl::SetMousePosition(position.x, position.y);
|
||||
|
||||
Reference in New Issue
Block a user