Fix bug with unassigned axis, and add configurable deadzone option