Searching for easy mouse button access
I am trying to read the mouse button in an obscure part of my code and having trouble.
OnMouse() sounds like a good idea but I''m not real sure how to pass that info from my window class to the class that needs it. Is the best way to just pass the CPoint on down the line to my game class on down to my button class?
Right now I am using this:
If(GetKeyState(VK_LBUTTON) < 1)
Which doesn''t work worth a crap. It usually thinks the left button is down when the app starts and then seems to be more of a toggle when I click on a button (which are not MFC derived buttons)
Calen
~freedom
Calen~freedom
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement