Advertisement

Searching for easy mouse button access

Started by May 30, 2000 06:25 PM
-1 comments, last by Calen 24 years, 7 months ago
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