diff --git a/Readme.md b/Readme.md index 22edc96..999a3ce 100644 --- a/Readme.md +++ b/Readme.md @@ -46,8 +46,8 @@ Make sure you use Arduino IDE 1.5.8 or newer. You don't have to modify the origi At the moment you have to move the cores/hid folder into your Arduino installation *arduino-1.6.0/hardware/arduino/avr/cores/hid* because of a bug in the IDE. -If you like to, you can add the keywords to your Arduino IDE so that words like 'Gamepad' are highlighted. -(TODO) +If you like to, you can add the keywords.txt to your Arduino IDE so that words like 'Gamepad' are highlighted. +Replace the file in *arduino-1.6.0/lib/keywords.txt* with the *keywords.txt* provided in this project. How to use ========== @@ -154,7 +154,6 @@ Keyboard Layout for different Languages Clean up USB Core code from fixed values. Use better understandable definitions Magic key fix for 32u4? -Add/update Keywords.txt definitions keycode/raw for keyboard Check Keyboard keycode function again? Generalize HID key definitions via HIDTables for example? diff --git a/keywords.txt b/keywords.txt index d77a4b1..69801d4 100644 --- a/keywords.txt +++ b/keywords.txt @@ -210,15 +210,39 @@ toInt KEYWORD2 # USB-related keywords +USBDevice KEYWORD3 Keyboard KEYWORD3 Mouse KEYWORD3 +RawHID KEYWORD3 +System KEYWORD3 +Consumer KEYWORD3 +Gamepad KEYWORD3 press KEYWORD2 release KEYWORD2 releaseAll KEYWORD2 accept KEYWORD2 click KEYWORD2 move KEYWORD2 +moveTo KEYWORD2 isPressed KEYWORD2 +getLeds KEYWORD2 +buttons KEYWORD2 +xAxis KEYWORD2 +yAxis KEYWORD2 +zAxis KEYWORD2 +rxAxis KEYWORD2 +ryAxis KEYWORD2 +rzAxis KEYWORD2 +dPad1 KEYWORD2 +dPad2 KEYWORD2 +HID_SendReport KEYWORD2 +wakeupHost KEYWORD2 +baud KEYWORD2 +stopbits KEYWORD2 +paritytype KEYWORD2 +numbits KEYWORD2 +dtr KEYWORD2 +rts KEYWORD2 setup KEYWORD3 Setup loop KEYWORD3 Loop