How to use "bpy.types.UserPreferencesInput(bpy_struct)"?

I can’t find any examples of its use, does anyone have a clue? I’m trying to access and hopefully set its “view_rotate_method” which can be ‘TURNTABLE’ or ‘TRACKBALL’. If I succeed with that, then other settings would be of interest as well, like “view_zoom_method”.

Please help if you know how to use this class in a script.

Got it!

bpy.context.user_preferences.inputs.view_rotate_method = "TRACKBALL"
bpy.context.user_preferences.inputs.view_zoom_method = "SCALE"

The rotate method changing works, but the zoom method changing seems to have no effect. If anyone else is interested in this, could they try it? I’m using 2.58.