new JInput Utility

I just checked back the first (not yet totlly complete) version of my “PatchPanel” in the com.worldwizards.utils.input package in the jnwn project.

The PatchPanel provides an easyw ay to abstract key bindings. The client rpogram gets named virtual Controls from the PatchPanel (eg “Walk Forward”). Thes can then be bound and reobound to different JInput controller/component tuples at run-time.

Its very early, currently it only works for ButtonControls (ie boolean components) and there is no way to set a default, save settings, ro restore them. all this is intended as jnwn progresses.

Update: The patch panel now hs a getDefaultKeyabordKey(…) method that allows you to set bidnings for specific default keybaord keys.

PatchPanelTest has been updated to use it so you can see how that is done.