arduino-libraries / Keyboard

GNU Lesser General Public License v3.0
223 stars 157 forks source link

Add definitions for missing keys #57

Closed edgar-bonet closed 2 years ago

edgar-bonet commented 2 years ago

The header file Keyboard.h provides definitions for many keys that do not map to printable characters, such as KEY_BACKSPACE, KEY_RIGHT_ARROW, KEY_F1, etc. Some keys are missing, though, to fully cover a standard full-size PC keyboard:

This pull request adds macro definitions for these missing keys, thus completing the emulation of a full-size keyboard.

github-actions[bot] commented 2 years ago

Memory usage change @ bc2864ad72d966b31f35a2e78cc1eeee29b3bac1

Board flash % RAM for global variables %
arduino:avr:leonardo 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:sam:arduino_due_x_dbg 0 - 0 0.0 - 0.0 N/A N/A
arduino:samd:mkrzero 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table Board|examples/Serial
flash|%|examples/Serial
RAM for global variables|% -|-|-|-|- arduino:avr:leonardo|0|0.0|0|0.0 arduino:sam:arduino_due_x_dbg|0|0.0|N/A|N/A arduino:samd:mkrzero|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/Serial
flash,%,examples/Serial
RAM for global variables,% arduino:avr:leonardo,0,0.0,0,0.0 arduino:sam:arduino_due_x_dbg,0,0.0,N/A,N/A arduino:samd:mkrzero,0,0.0,0,0.0 ```