Description
The mouse look (or free look, i.e., move the mouse to change the view/camera) is common in RPG and FPS games. In my cloud game project, I tried to achieve this feature. Before programming, I tested an RPG game (Genshin) in Windows, I started it directly in my PC and used spy++ to check what happened when I moved the mouse. I got these results:
It seemed that however I moved the mouse, although the role's view changed, the positions in WM_MOUSEMOVE messages didn't change too much. Actually, 640 and 343 were about the half of the resolution sizes (1280*720).
Question
How those games achieve this: move the mouse and change the role's view, but the positions in messages don't change? What bottom winapis are used? (I hooked ClipCursor and the input parameters of ClipCursor were just my screen's width and height.) In cloud games, I need to use remote mice (clients' inputs) to achieve this feature, what can I do?
