Enumerate joystick buttons
Use ACCEPT key to interact with NPCs
Add joystick support for NPC interaction

To prevent some cases of input overlapping, joystick button locking
(similar to keyboard key locking) has been added to the InputManager.
Use JOY_CANCEL to close menus
Use Accept key/button to trigger nearby events

* In checkNPCInteraction(), only lock the Accept key if an NPC is found.
* Fix a crash when trying to execute NULL events.
Use Accept key/button to pick up nearby loot
Fix transform_duration being ignored for transform powers
Switch effects and passive powers when transforming
Merge branch 'bugfixes' of github.com:dorkster/flare-engine into bugfixes
Merge pull request #344 from dorkster/bugfixes

Fix Transform power bugs
Merge pull request #339 from dorkster/joystick

Usage of Accept key/button for object interaction
Merge branch 'master' of https://github.com/clintbellanger/flare-engine into 0.18