Thread: graphics use to mouse

  1. #1
    Registered User
    Join Date
    Jan 2013

    graphics use to mouse

    hello friends,i am doing c game project,i use graphics library at C langueage,i want to mouse but i don t know,please help me.

  2. #2
    Bored Programmer
    Join Date
    Jul 2009
    Tomball, TX
    There are many libraries for handling input events for games in C, I would suggest SDL.

    It is portable and there are a lot of tutorials around for handling mouse input. The downside is it can be difficult for a new person to set up the environment for the first time.

    You also have other options such as Win32. Which is also a C library but it can be a lot more difficult to learn and it is a lot more code to learn just to add a mouse event as you will have to rebuild your entire project.

    There is also glut/open gl but you probably should not get into that yet.

    I would also like to add that these are also libraries that handle graphics as well as I don't know of any standalone library for mouse input short of writing your own port monitoring code.

    What graphics library are you using?
    Virtual reality hello world in html and javascript.
    Viewable with dodocase, google cardboard, OR, and other compatible VR gear.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Identifying mouse used with Global mouse hooks
    By Chillance in forum Windows Programming
    Replies: 4
    Last Post: 02-15-2009, 08:42 AM
  2. Mouse event in Graphics Mode (can't catch Left Click)
    By quangnd in forum C++ Programming
    Replies: 5
    Last Post: 12-04-2007, 05:51 PM
  3. Handling mouse in graphics mode in Turbo C/DOS
    By sureshkumarct in forum C Programming
    Replies: 2
    Last Post: 12-24-2006, 09:36 AM
  4. mouse
    By stilllearning in forum C Programming
    Replies: 0
    Last Post: 04-15-2003, 03:34 PM
  5. Simple graphics and mouse
    By tim545666 in forum C++ Programming
    Replies: 10
    Last Post: 01-07-2002, 07:41 AM