In file included from C:\Users\Marek1-PC\Downloads\Analog-E-Brake-master\ANALOG_EBRAKE\ANALOG_EBRAKE.ino:8:0:
C:\Program Files (x86)\Arduino\libraries\Joystick/Joystick.h:31:2: error: #error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
#error The Joystick library can only be used with a USB MCU (e.g. Arduino Leonardo, Arduino Micro, etc.).
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
What type of board do you have? If it is not an Arduino Leonardo or an Arduino Micro then you need to buy another board. Nothing in the IDE is going to make that code run on any other board.