Refactored InputControllers sample