Add stuff for cmake find_package

- Add build* to gitignore
- Fix year in license file
- other changes are result of clang-format
This commit is contained in:
2026-03-01 21:41:53 +01:00
parent 8ee7006d2c
commit da0f7320c8
10 changed files with 137 additions and 15 deletions

View File

@@ -24,7 +24,9 @@ SOFTWARE.
#include <pd/drivers/hid.hpp>
namespace PD {
PD_API bool HidDriver::IsEvent(Event e, Key keys) { return KeyEvents[0][e] & keys; }
PD_API bool HidDriver::IsEvent(Event e, Key keys) {
return KeyEvents[0][e] & keys;
}
PD_API bool HidDriver::IsEvent(Event e, KbKey keys) {
return KbKeyEvents[0][e].Has(keys);