IDE can't find Keyboard.h and Mouse.h

Hi, just installed Arduino IDE on macOS 12 (Sierra) and started it, letting the program use it's default sketches location (/Users//Documents/Arduino) , not changing anything.

When I try the USB-examples using Keyboard and Mouse they won't compile:
'Mouse' not found. Does your sketch include the line '#include <Mouse.h>'?
'Keyboard' not found. Does your sketch include the line '#include <Keyboard.h>'?

Both files already had #include "Mouse.h", #include "Keyboard.h" and changing to brackets made no difference.

Another of the examples like "Autoscroll" whith #include <LiquidCrystal.h> compiles. So there's no general error on #include paths.

If I look inside Arduino.app both Mouse.h and Keyboard.h are there (as well as LiquidCrystal.h). If I look at "Manage Libraries" both Keyboard and Mouse are installed (it even says "built in").

So why doesn't the compiler find them?

If I open the .h files both the problematic libraries has this statement, which is not present in the example that compiles:

#ifndef MOUSE_h
#define MOUSE_h

#include "HID.h"

#if !defined(_USING_HID)

#warning "Using legacy HID core (non pluggable)"

#else

Not the inclusion of a file named "HID.h". I can not see this headerfile in the preloaded libraies and I can't find it using Manage Libraries either. Could this be the problem and what can be done?

Which Arduino board are you using and does it support the use of the Mouse and Keyboard libraries ? Most don't

Hello!

I was using the Micro and now I realized that compilation depends and which board I've selected in the IDE. I didn't know that affected inclusion of headerfiles.

After switching to the right board, compilation works just fine.