mettli / guichan

Automatically exported from code.google.com/p/guichan
Other
0 stars 0 forks source link

Generic input class #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Implement a generic input class to which input can be injected. A generic
input class can be used when an input class is missing, an exmaple of such
a case is when Guichan is used with OpenGL where the generic input class
can be used with GLUT.

gcn::GenericInput::injectMouseButtonPressed(int x, int y, int button);
gcn::GenericInput::injectMouseButtonReleased(int x, int y, int button);
gcn::GenericInput::injectKeyPressed(const Key& key);
gcn::GenericInput::injectKeyReleased(const Key& key);

Original issue reported on code.google.com by olof.nae...@gmail.com on 5 Apr 2007 at 12:10

GoogleCodeExporter commented 9 years ago

Original comment by olof.nae...@gmail.com on 6 Apr 2007 at 1:14

GoogleCodeExporter commented 9 years ago
I'd like to see the the pushEvent functions put into the *base* input class.
This way for all input classes the functionality to fake events would exist.

Use cases that popped up where 'recording' events and then replaying them. Or
automating a test. I am not quite sure yet how useful this is, but it wouldn't 
hurt
either.

Original comment by klaus.bl...@web.de on 22 Oct 2008 at 5:04