Changed some InputDevice member functions to be non-virtual.