The val output parameter is set to point into the controls array. A copy of the control value is not made.