Retrieving the Input Source (C Program)

The following function returns the integer value of the last input source. For example, if the last input was from the keyboard, 1 is returned.

int dvc_get_inp_source(void)