input_cmd_events: add support for input types
input_cmd_events: add support for input types

This adds support for input type configs to input_cmd_events. This works
similar to the wildcard handling that existed where configs for the
devices are stored and the type config is reset to INT_MIN so that it
does not override.

This also condenses the toggle_send_events and
toggle_wildcard_send_events functions into a single function to reduce
code duplication.

SirCmpwn/sway,1ace/sway,ascent12/sway,1ace/sway,1ace/sway,ascent12/sway,ascent12/sway