🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Mouse Class
Does Anyone have any Idea how you would scan the position of the mouse from within a class?
Example:
Class Mouse
{
Public:
Scan(); // this is what I want.
Private:
int mousex, mousey; // Mouse coords.
}
Mouse::Scan()
{
// In here the mouse coords would be stored in mousex/mousey.
}
Did that make sense?
(P.S. I Am STRONGLY against using GLUT, even though it does have mouse functions)
-----------------------------
Blue*Omega
(Insert Witty Quote Here)
You can do this with DirectInput if you are
going to support MS inventions.![](wink.gif)
You can mail me and I will send you a short
code snippet. I would post it here, but this
could be a little bit to large.
Best regards
Marc ''nEo'' Ueberall
going to support MS inventions.
![](wink.gif)
You can mail me and I will send you a short
code snippet. I would post it here, but this
could be a little bit to large.
Best regards
Marc ''nEo'' Ueberall
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement