Add a class indicating the last input device used

I'm not sure if this is the best way to approach it, but i'd like to add
something like this for image gallery, so we could hide the arrows on touch
being used, rather than available. And bring them back if the person starts
waggling their mousey around.