Working principles of input devices