- When Stylus comes in proximity of PenTablet BTN_TOOL_PEN code is generated,
- On pressing lower button BTN_STYLUS code is generated
- On pressing upper button BTN_TOOL_RUBBER, BTN_TOUCH codes are generated.
- Different Scancodes are generated with the express keys which need to be mapped to keycodes and then can be used.
-> Get scancodes & device identification info using evtest/evemu-record.
sudo evtest | grep -B1 "value 1"