mouse in C++

i can’t find any documents and thread about this
so i have to ask here

how do you find mouse position and detect mouse button in C++

i tried alot of method by looking through the source code but nothing work.

please help me!

nvm i found out how already

Can you perhaps post the solution, so other users can benefit from it as well? Thanks.

try to find some better way first