Libraries to handle input...

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
beaumonj
Gnoblar
Posts: 1
Joined: Fri Apr 01, 2005 12:12 pm

Libraries to handle input...

Post by beaumonj »

Hey guys,

Am just gettting into ogre, its wicked. :D

I know ogre has some basic input handling capabilities, but for what im looking to do, i need something a little better. Does anyone know of any good input libraries (keyboard/joystick etc)?
User avatar
Goosey
Halfling
Posts: 88
Joined: Wed Sep 29, 2004 3:33 am
Location: Ohio, USA
Contact:

Post by Goosey »

I would look into SDL, I know that some people around here have had success using that. It is cross platform and has joystick support.
I <3 the OGRE Wiki, and SO SHOULD YOU! :)
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

I recommend GGI. It is on par with SDL with input support but is smaller, and easier to bind to an existing window than SDL. (no environment variable hacks needed for one thing)

I have a GGI->CEGUI binding for Linux (handles converting all the key codes mouse clicks etc), it wouldn't be much work to port it to windows. Let me know if you need it.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

That would be very cool!
I raised the topic here some time ago - alternative input libs - and found GGI, which I find very cool.
I know Sinbad has been harping on and on about the Ogre input system only being there for demoing purposes.
I really believe that a lot of us is now wondering how to liberate ourselves from the Ogre InputReader and KeyEvent stuff ...
:)
Excellent if you have an example of how to use GGI. :wink:
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

Well, actually it is LibGII (General Input Interface), which is a stand-alone subproject of GGI (General Graphics Interface).

It looks way cool!
LibGII
General Input Interface. Manages user input. Allows event abstraction, i.e. application registers a unique event type (such as "player jumps") and the library takes care of input bindings. The application need only worry about "player jumps" events, not stuff like "keypad_up pressed" and "gray_pgdown released" events.
It's being used a lot in Linux - and by SDL as a matter of fact. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Fredz
Greenskin
Posts: 122
Joined: Wed May 26, 2004 1:45 pm
Location: Perpignan, France

Post by Fredz »

Added to the Wiki. I didn't add comments about their respective merits since I don't use any of these libraries, feel free to do it...
User avatar
neocryptek
Gnome
Posts: 335
Joined: Sat Mar 01, 2003 11:21 pm
Location: Idaho, USA
Contact:

Post by neocryptek »

:wumpus: wrote:I have a GGI->CEGUI binding for Linux (handles converting all the key codes mouse clicks etc), it wouldn't be much work to port it to windows. Let me know if you need it.
Id be very interested in such a binding. (as would others im sure)

Ive been pondering a switch to LibGII for a while now, but keep putting it off due to time. This could be a great head start to finally make the switch.

-N30
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

I've added my steps to the Wiki :

http://www.ogre3d.org/wiki/index.php/GII
User avatar
bal
Greenskin
Posts: 100
Joined: Thu Dec 09, 2004 7:29 pm
Location: Geluwe, Belgium

Post by bal »

The library looks nice but I can't seem to find their "review on how to set it up on Windows" as stated on the Download-page. Does it needs Cygwin like mentioned on another page of the site?
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

No idea, haven't needed it for windows yet; I think you just need to add the files to a project.
I might look at it later, no time now.
User avatar
Sarev0k
Halfling
Posts: 86
Joined: Mon Dec 13, 2004 9:47 am
Location: Oregon, United States
Contact:

Post by Sarev0k »

Hey Wumpis, did you ever get a chance to see if you could build libgii in windows?
Image
An open source 3D real-time strategy game engine (under development)
Post Reply