Thread: Cross Compatible Input Library

  1. #1
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005

    Cross Compatible Input Library

    I've been working on a game engine and at some point I'll need to stop putting off the input piece of it. I want to keep the thing free (actually free, not gpl lgpl we pretend it's free) but I would like to avoid writing the lowest level myself, is there something other than sdl that will work?

    Thanks all.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Not cross-platform if that is what you are after. If not, DirectInput is a cake walk and is reminiscent of the old keyboard interrupt handler code we used to implement.

    if (KeyDown[keycode]) DoSomething();
    And, no, you don't have to fire off Direct3D to use DirectInput. It just needs an HWND and the devices need an HINSTANCE.

  3. #3
    Join Date
    Jan 2006
    GLUT offers basic keyboard/mouse input functions. I don't like it very much though, because it's so limited.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    SDL has event handling, too. It's both cross-platform and free in the sense you mean.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    SDL is licensed under lgpl unfortunately

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  7. #7
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    I just glanced over the api a bit, that will work perfectly until I suck it up and write it myself, thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's an import library?
    By chiefmonkey in forum C++ Programming
    Replies: 1
    Last Post: 06-19-2009, 05:00 PM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  4. I would love some input on my BST tree.
    By StevenGarcia in forum C++ Programming
    Replies: 4
    Last Post: 01-15-2007, 12:22 AM
  5. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
Website Security Test