use mobyle2 types for input control generation

work in progress, of course.