VScode提示was not declared in this scope

问题遇到的现象和发生背景

VScode工程中引用了第三方库,报错was not declared in this scope,但对应头文件中已经是声明了的

问题相关代码,请勿粘贴截图

img

运行结果及报错内容

'Keyboard' was not declared in this scope

我的解答思路和尝试过的方法

试过自己新建一个空的.cpp和.h,结果是可以运行的

我想要达到的结果

请问到底是哪里出了问题