Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sorry for the ackward title, but i don't know what to call it exactly. I'm looking for code or libraries that allow easy creation of commonly used user input devices, and code/libs that make gaming controls easy to set up (i'm using SFML and Box2D at the moment)

I don't want to re-invent things like buttons, arrows being placed wherever the mouse is located, and more game specific items such as "controls settings" or even being able to drag objects around with the mouse.

More specifically i want source code for interfaces that....

  • Makes Buttons and Textboxes easy to create
  • allows mouse input to press buttons or drag objects in games
  • has "Focuses" (like a textbox being able to gain focus and be typed in)
  • Is compatable with SFML/Box2D

and code for common game mechanics/controls that....

  • Allows easy setup of controls for a game
  • Makes events like clicking and holding on an object easy to setup, as so objects can be dragged around afterward

Are there any simple libraries or resources out there that i can use to avoid spending much of my time coding these now standard input devices/tecniques?

share|improve this question

closed as not a real question by Jeff Atwood Sep 5 '11 at 4:24

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2  
possible duplicate of What C++ GUI library can you suggest? –  user744 Jul 6 '11 at 21:12
add comment

1 Answer 1

up vote 0 down vote accepted

There are literally hundred of them out there. cegui is widely adopted. Look into libagar, antisphere & mygui as well.

Turska UI/Framework has built in support for SDL.

Have you looked into this list(SDL Libraries)?

There are too many to list, but a handful of them continues with regularity.

share|improve this answer
    
which one would you say is the easiest to work with? –  Griffin Jul 6 '11 at 21:22
    
If you don't have any any problem with xml editor then go with cegui otherwise you can give it(Turska UI) a try. But, before adapting, give a test run. See if it suits you. –  iamcreasy Jul 6 '11 at 21:51
    
do i need to port it to SFML? How would i go about doing this? –  Griffin Jul 7 '11 at 3:20
    
@griffin CEGUI Tutorials –  iamcreasy Jul 7 '11 at 4:04
    
oh i mean do i need to pport Turska sorry –  Griffin Jul 7 '11 at 4:24
show 2 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.