LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 709 users online 221813 members 1576 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Magnifique
Peeves: When people chew loudly. When people b...
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
6 online / 28 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: 169
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,067 | Points: 2,855
LiveWire Humor
Lord Cat


Wealthy Hobo

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

-------
The linux command line is like windows DOS
on acid with a credit card in los-vegas ,it can do anything,

11:28 am on Dec. 22, 2008 | Joined: Sep. 2008 | Days Active: 203
Join to learn more about Lord Cat Ireland | Label Free Male | Posts: 3,198 | Points: 5,371
( 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: 169
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,067 | Points: 2,855
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: 853
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,750 | Points: 12,117
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: 81
Join to learn more about anonomouse California, United States | Straight Male | Posts: 605 | Points: 1,572
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