This is a helper plugin library for [Unreal Engine 4](https://www.unrealengine.com)
which makes a bunch of things better:
* UI Improvements
* FocusableButton: button which uses Hover style to highlight when it has focus (keyboard / gamepad)
* FocusablePanel: which ensure a widget is focussed when gamepad is activated so navigation is reliable
* Also remembers last focussed widget so it can be restored when used in context stacks
* FocusableUserWidget: A hack to allow UserWidgets to delegate their focus requests to a child item (required to make focus work reliably with compound widgets)
* InputImage: Image which will change itself to an image representing a button / key based on an input action
* (It changes dynamically when the input method changes e.g. when player moves a gamepad stick)
* Includes use of a UiTheme data asset which maps FKeys to Sprite images of buttons
* MenuStack/MenuBase: a context stack of widgets so you can easily create menu sequences, implement "back" navigation
* OptionWidgetBase: a widget which implements the "choose an item" concept but adapts between mouse and keyboard/gamepad
style navigation depending on what the currently used input method is
* Input Improvements
* Tracks last used input method (keyboard / mouse / gamepad) per player
* Events raised whenever a player uses a different input method (in game, and in UI)
(Actually reliable and not dependent on vagaries of input mappings / differences between UI and game input)
## Installing this plugin
### Cloning
The best way is to clone this repository as a submodule; that way you can contribute
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.