Hi, so i tried uploading the sketch to the arduino leo and i encountered a problem that didn't let me upload it

i followed the steps of replacing the HID.h and HID.cpp and copy pasting the text in boards.txt (without the first 4 lines) and put it at the bottom of the already existing board.txt within the arduino data files, then i opened taiko.ino, activated the //joystick, chose the nintendo switch board, and then i was greeted by the undefined error
this is the first time i've done something like this as well as arduino stuff in general so i might be oblivious as to what is going on so i would really appreciate it if you could help me, thank you