For platforms that don’t have native JInput implementations, would anyone feel that a generic plugin that supports only keyboard and mouse, as provided by AWT would be useful? Or is this already the case?
Looks like Endolf indicated he was going to be working on such a project, as seen from:
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1087611855
Out of curosity I was looking at how this would be implemented. I am having a little trouble working out which class/interface would be used for the entry point into a plugin? Can anyone help?
here some starter info:
Implement a ControllerEnvironment to return an array of Controller instances.
For mouse and keyboard support you may subclass StandardKeyboard and the Mouse class.
For AWT integration have a look the AWTEvent class. This allows you to receive events from the whol AWT system. I may notice here that LWJGL and SWT users will a bit unhappy about this because without a real java.awt.Frame the AWT event system will not generate any events.