LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 612 users online 224814 members 1412 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
ohemjezzie
Cool Things: whatever
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
3 online / 48 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

DEV C++ graphics mode, input from mouse. POINTS!
Replies: 4Last Post Jan. 10 10:11pm by anonomouse
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( bbygrl84 )


Professional
Reply
I need a code that enables getting input from the mouse. Also some explanations would be appriciated.
P.s: I'm using graphics mode

11:26 am on Dec. 22, 2008 | Joined: April 2007 | Days Active: 170
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,069 | Points: 2,867
LiveWire Humor
Lord Cat


Connoisseur

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

-------
If God was a villain, He'd be me.

11:28 am on Dec. 22, 2008 | Joined: Sep. 2008 | Days Active: 230
Join to learn more about Lord Cat Ireland | Label Free Male | Posts: 4,163 | Points: 6,541
( bbygrl84 )


Professional
Reply
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


11:30 am on Dec. 22, 2008 | Joined: April 2007 | Days Active: 170
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,069 | Points: 2,867
sakurag


Soothsayer

Patron
Reply
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..

-------
I've got spurs that jingle jangle jingle.
As I go riding merrily along.
And they sing, "Oh, ain't you glad you're single?"
And that song ain't so very far from wrong.


12:04 am on Dec. 26, 2008 | Joined: Oct. 2002 | Days Active: 886
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,880 | Points: 12,581
anonomouse


Dairy Product Addict
Reply
Use: http://wxdsgn.sourceforge.net/ wxDev C++, it's Dev C++ with wxWidgets (which allow you to design windows).

-------
I once heard the voice of God.
It said "Vrrrrmmmmm." Unless it was just a lawn mower.

10:11 pm on Jan. 10, 2009 | Joined: April 2007 | Days Active: 85
Join to learn more about anonomouse California, United States | Straight Male | Posts: 611 | Points: 1,618
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic