Timeline for Why the mouse doesn't move in mouse-look feature of RPG/FPS games?
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2021 at 12:27 | comment | added | DerekLu | @DMGregory Thanks for your advice. | |
| May 14, 2021 at 10:43 | comment | added | DMGregory♦ | That sounds like a different question than the one you asked. "How do I implement camera movement in a client-server FPS" versus "Why the mouse doesn't move in mouse-look". You can create a new question post to explain your current situation in more detail and ask for help with the part you need. | |
| May 13, 2021 at 12:58 | comment | added | DerekLu | 2. The whole procedure, according to your answer, is post WM_MOUSEMOVE-process this message-set the cursor to the center. In cloud game situations (client-server), the server side just has the inputs of the client. So I post the message and set the cursor, but how to process the message, i.e., get the relative mouse movement and change the camera view? | |
| May 13, 2021 at 12:55 | comment | added | DerekLu | Thanks for your reply. I still have some questions: 1. According to ms document, parameters for SetCursorPos should be "screen" coordinates. Should I use ClientToScreen to change iViewportWidth / 2, iViewportHeight / 2 to screen coordinates? | |
| May 13, 2021 at 10:45 | history | edited | Sgt. Nukem | CC BY-SA 4.0 | linked WinAPI SetCursorPos(x,y) |
| May 13, 2021 at 10:41 | review | First posts | |||
| May 13, 2021 at 15:02 | |||||
| May 13, 2021 at 10:38 | history | answered | Sgt. Nukem | CC BY-SA 4.0 |