keyboard - How often do operating systems poll key inputs? -


is @ each screen refresh or when keys pressed (through interrupts etc.)?

that largely depends on device. there 3 generations of devices:

  1. polling

  2. character interrupts. each key press generates input.

  3. programmed interrupts. device configurable generates interrupt when necessary. example, terminal devices support programming such user can enter string of characters (and edit characters) , there interrupt when user hits <return>.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -