linux-wallpaperengine/src/WallpaperEngine/Input/CInputContext.cpp
2023-04-20 13:52:25 +01:00

29 lines
637 B
C++

#include "CInputContext.h"
#include "WallpaperEngine/Render/Drivers/CX11OpenGLDriver.h"
#include "WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.h"
using namespace WallpaperEngine::Input;
using namespace WallpaperEngine::Render::Drivers;
CInputContext::CInputContext (CX11OpenGLDriver& videoDriver) :
m_mouse (videoDriver.getWindow ())
{
}
#ifdef ENABLE_WAYLAND
CInputContext::CInputContext (CWaylandOpenGLDriver& videoDriver) :
m_mouse (nullptr)
{
// todo
}
#endif
void CInputContext::update ()
{
this->m_mouse.update ();
}
const CMouseInput& CInputContext::getMouseInput () const
{
return this->m_mouse;
}