Added map and scale function for joystick values with deadband.