mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-12 19:30:44 +02:00
33 lines
445 B
C++
33 lines
445 B
C++
#include "GenericMouse.h"
|
|
|
|
namespace prime
|
|
{
|
|
|
|
void GenericMouse::mousePressEvent(int x, int y)
|
|
{
|
|
int xClick = x, yClick = y;
|
|
if (xClick >= 0 && yClick >= 0)
|
|
{
|
|
cursor_locked = true;
|
|
}
|
|
}
|
|
|
|
void GenericMouse::ResetDeltas()
|
|
{
|
|
dx = dy = 0;
|
|
}
|
|
|
|
int32_t GenericMouse::GetDeltaHorizontalAxis() const
|
|
{
|
|
return dx;
|
|
}
|
|
|
|
int32_t GenericMouse::GetDeltaVerticalAxis() const
|
|
{
|
|
return dy;
|
|
}
|
|
|
|
GenericMouse* g_mouse_input;
|
|
|
|
} // namespace prime
|