S
S
s2sk13372017-09-24 10:01:35
C++ / C#
s2sk1337, 2017-09-24 10:01:35

Lock mouse inside window?

Hello.
I need to make a camera in a toy and now I don’t know how to handle the mouse correctly. How can you track that the user has moved the mouse somewhere? Permanently teleport mouse to 0 0 coordinates and watch changes from them? And at the same time, so that the mouse does not go beyond the window if the windowed game mode is enabled.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2017-09-24
@Shurauzer

Perhaps this will help.

M
Mercury13, 2017-09-24
@Mercury13

ClipCursor function .

K
Konstantin Tsvetkov, 2017-09-24
@tsklab

GetCursorPos function .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question