graphics use to mouse

This is a discussion on graphics use to mouse within the Game Programming forums, part of the General Programming Boards category; hello friends,i am doing c game project,i use graphics library at C langueage,i want to mouse but i don t ...

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    3

    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
    Location
    Tomball, TX
    Posts
    407
    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?

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, 07: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, 04: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, 08: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, 06:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21