|
-- Posted by bbygrl84 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
-- Posted by Lord Cat at 11:28 am on Dec. 22, 2008
Em...installing the mouse...., no enough Data to understand
-- Posted by bbygrl84 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
-- Posted by sakurag 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..
-- Posted by anonomouse 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).
|