I’m trying to get the standard FPS Camera. But I need to click the button to get X and Y mouse values.
It only gets the values when I have mouse button down
if (event.type == SDL_MOUSEMOTION)
{
if (SDL_MOUSEBUTTONUP)
{
iMouseX = event.motion.x;
iMouseY = event.motion.y;
}
}
I had FPS camera running on PC, but It doesn’t seem to work on Android.