LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 617 users online 211543 members 1323 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Italianlnm
Movies: The Proposal. I laughed so hard I crie...
Mood: Relaxed
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
4 online / 42 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: 163
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,051 | Points: 2,779
Lord Cat


Wealthy Hobo

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

-------
Don't click here
but what ever you do don't click here!

11:28 am on Dec. 22, 2008 | Joined: Sep. 2008 | Days Active: 153
Join to learn more about Lord Cat Ireland | Label Free Male | Posts: 2,547 | Points: 4,087
( 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: 163
Join to learn more about bbygrl84 Ontario, Canada | Straight Female | Posts: 1,051 | Points: 2,779
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: 752
Join to learn more about sakurag Washington, United States | Straight Male | Posts: 2,555 | Points: 11,297
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: 65
Join to learn more about anonomouse California, United States | Straight Male | Posts: 598 | Points: 1,403
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