how to detect mouse press & release on windows?

hey
how do i detect when the mouse is pressed and released? (on windows btw)

i dont have a window with a message loop, so i cant wait for an even to be fired
i just want to detect it at any time
Last edited on
directinput libraries can do this.
thanks,
i would just like to learn how to do it myself first :)
Topic archived. No new replies allowed.