# x86-64 Keys and the pointer

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md)

Web page: https://asm-editor.specy.app/documentation/x86/input

Read Screen keys, pointer positions and buttons through /dev/input, or read Terminal characters through standard input.

10 entries, each with its own page of markdown:

- [Keys and the pointer](https://asm-editor.specy.app/documentation/x86/input/overview.md): An x86 program reads Terminal characters from standard input.
- [Opening the keyboard](https://asm-editor.specy.app/documentation/x86/input/keyboard.md): Each input device has a file named /dev/input/event0, /dev/input/event1 and so on.
- [Finding a device](https://asm-editor.specy.app/documentation/x86/input/finding-devices.md): Open the event files and query their capabilities with EVIOCGBIT.
- [Events](https://asm-editor.specy.app/documentation/x86/input/events.md): A read gives whole events, 24 bytes each, as a struct input_event.
- [The pointer](https://asm-editor.specy.app/documentation/x86/input/pointer.md): The Screen pointer reports absolute positions: where it is within the Screen, rather than how far it moved.
- [What is held now](https://asm-editor.specy.app/documentation/x86/input/state.md): EVIOCGKEY(size) fills a bit set of the keys and buttons held now.
- [Waiting for input](https://asm-editor.specy.app/documentation/x86/input/waiting.md): A read of a device opened without O_NONBLOCK waits until an event comes.
- [The Terminal's keys](https://asm-editor.specy.app/documentation/x86/input/terminal.md): Standard input normally gives a whole line once Enter is pressed, with what was typed shown and Backspace erasing.
- [What is different from a real Linux machine](https://asm-editor.specy.app/documentation/x86/input/differences.md): The devices behave as they do on a QEMU virtual machine running Linux, the reference this emulator follows.
- [Not covered](https://asm-editor.specy.app/documentation/x86/input/not-covered.md): The mouse devices /dev/input/mice, /dev/input/mouse0 and /dev/input/mouse1 are unavailable.
