Cross Compatible Input Library

This is a discussion on Cross Compatible Input Library within the Tech Board forums, part of the Community Boards category; I've been working on a game engine and at some point I'll need to stop putting off the input piece ...

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

    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
    Posts
    9,596
    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.

    Code:
    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
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    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
    Posts
    8,893
    SDL has event handling, too. It's both cross-platform and free in the sense you mean.
    All the buzzt!
    CornedBee

    "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
    Posts
    357
    SDL is licensed under lgpl unfortunately

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,487
    Allegro?
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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
    Posts
    357
    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

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