http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mouse Input



Greetings All!

I am making a winmine clone using vc++ and directx, mixed in are vectors
and classes. I know it sounds way overcomplicated but I have very little
windows game programming experience and I figured doing an easier game
like this would help me learn directx and vc++, as well as strengthening
my class and vector-using experience.  Most of my prior experience is in
ANSI C and text based game programming(MUDs).

Problem 1:  I have been able to find sample code on just about everything
I want to do except the mouse input capturing for directx.  

1. How do I capture a (x,y) coordinate? How do I capture a mouse click?

2. Do I have to use a directx function for this or is there an easier way?

Problem 2:  I have gotten things drawn to screen using directdraw but am
having problems figuring out how to send plain old text.  I want to do
this so that I can print variable values for debugging and such.

I am especially interested if you can point the way towards sample code
that I can look at and learn from.

I am sure this is an easy answer for you wizzes out there and all answers
are greatly appreciated!!

Thanks in advance,
Rob

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html