mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +08:00

+ added vector2 pointer class for shader parameters Signed-off-by: Alexis Maiquez <almamu@almamu.com>
20 lines
488 B
C++
20 lines
488 B
C++
#include "CEventReceiver.h"
|
|
|
|
using namespace WallpaperEngine::Irrlicht;
|
|
|
|
bool CEventReceiver::OnEvent(const irr::SEvent &event)
|
|
{
|
|
if (event.EventType == irr::EET_MOUSE_INPUT_EVENT && event.MouseInput.Event == irr::EMIE_MOUSE_MOVED)
|
|
{
|
|
this->m_position.X = event.MouseInput.X;
|
|
this->m_position.Y = event.MouseInput.Y;
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
const irr::core::position2di& CEventReceiver::getPosition () const
|
|
{
|
|
return this->m_position;
|
|
} |