LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 295 users online 225307 members 304 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
opera
Music: classical
Mood: Smart
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
1 online / 39 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Adding Reply

Quoting Post
Archived Topic: It will not be bumped to the top of the forum.
Topic DEV C++ graphics mode, input from mouse. POINTS!
Membername   Not a member? Sign Up Free (takes 20 seconds)
Password   Forgotten your password?
Post

Font:   Size:   Color:

FAQ Keyword Search:
Post Options
Favorites Manager
Notify me of new replies to this topic by email
Notify me of new replies to this topic by private message
Original Post
bbygrl84 Posted at 11:26 am on Dec. 22, 2008
I need a code that enables getting input from the mouse. Also some explanations would be appriciated.
P.s: I'm using graphics mode

Replies
anonomouse Posted at 10:11 pm on Jan. 10, 2009
Use: http://wxdsgn.sourceforge.net/ wxDev C++, it's Dev C++ with wxWidgets (which allow you to design windows).
sakurag Posted at 12:04 am on Dec. 26, 2008
Not sure what 'Graphics Mode' means.  But you can get input from the mouse by listening to mouse input messages out of the message loop.

WM_MOUSEMOVE will return a standard message to you.  Loword lparam is x and hiword I believe is y.

WM_LBUTTONDOWN, etc can be used as well.

If the mouse is USB, and most are these days, you can also grab the input out of the RawInput API's.  But they are a little trickier.  You'll need to know the MOUHID codes..

bbygrl84 Posted at 11:30 am on Dec. 22, 2008
Quote: from Lord Cat at 11:28 am on Dec. 22, 2008

Em...installing the mouse...., no enough Data to understand

what do you need

Lord Cat Posted at 11:28 am on Dec. 22, 2008
Em...installing the mouse...., no enough Data to understand
All 4 previous replies displayed.