Input

Is there a function that gets the input from the buttons/joysticks/switches and has the channel?

Or something like it?

Buttons/Switches = Digital OI Input
Joysticks Axis = Analog OI input