Thread: Mouse Input????

  1. #1
    Registered User
    Join Date
    Nov 2001

    Arrow Mouse Input????

    I am working on a program to create a very simple text editor in C. I was working on dynamically allocating memory for the characters to be stored so that the size of memory would expand to accomadate various sizes of text. I was thinking it would be nice to have a simple mouse interface to allow the user to click on things (like a very simple menu). I am wondering, how do I get mouse input??? I've looked at a couple of program samples and they have used dos.h to hold information that was stored in memory about the mouse. I do have the dos.h file but find that using this can cause my computer to crash if I am running in windows. I tried looking at some built in functions in windows that I could call to get mouse input but then I have the feeling that I really don't understand how things are working. I want to know how to get mouse input using C, I don't want to just call something somebody else wrote (or atleast if I am going to call it I want to understand it myself). Can anyone help me?

  2. #2
    Registered User alex6852's Avatar
    Join Date
    Sep 2001
    Here, look at this code. It might help you somehow to understand mous input.
    C++ rulez!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Input class project (again)
    By Elysia in forum C++ Programming
    Replies: 41
    Last Post: 02-13-2009, 10:52 AM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 02:20 PM
  3. Mouse Input
    By bumfluff in forum C++ Programming
    Replies: 7
    Last Post: 11-11-2005, 01:23 AM
  4. Making a mouse hover button, API style
    By hanhao in forum C++ Programming
    Replies: 1
    Last Post: 05-27-2004, 06:17 AM
  5. Win32 Console App- Mouse input
    By Trauts in forum Windows Programming
    Replies: 2
    Last Post: 04-29-2003, 11:32 AM