This command lists all of the buttons of the specified input device specified as an argument.
Derived from mel command maya.cmds.listInputDeviceButtons
Example:
import pymel.core as pm
# Returns a list of the buttons of the spaceball.
pm.listInputDeviceButtons( 'spaceball' )