Hello,
I'm programing on a 3D retro levels player open library.
It works on Windows and Ubuntu.
But i have a problem on Macbook Air trackpad.
Same thing if i connect a mouse.
The problem is with these commands : SetRawMousePosition() / GetRawMouseX() / GetRawMouseY().
I use SetRawMousePosition(GetVirtualWidth() / 2.0, GetVirtualHeight() / 2.0) to reposition the mouse at center.
And when the player move the mouse to look around, i substract it from GetRawMouseX() / GetRawMouseY(), to get MouseMoves.
Sadly, after a needed simple click on mac screen, the player mouse moves has no effect.
Have you any working piece of code to solve my problem ?
(The 3D FPS Example, with the click needed anytime is not what i need)
I've attached my program, at this time.
Emotional High Potential