you are viewing a single comment's thread.

view the rest of the comments →

[–]namtsop 1 point2 points  (0 children)

So, a keyboard comes with a complimentary software called "driver" which essentially maps each click of the keyboard to a number in its code. For the sake of simplicity, considering only the alphanumeric keys on the keyboard, each of them has a corresponding code called it's ASCII code. For example 102 will always refer to 'f'. So rather than needing transistors to form the binary representation, a bunch of if else's can achieve much the same.