Add HidDriver base and small HidGLFW driver

This commit is contained in:
2026-09-06 16:06:14 +02:00
committed by tobid7
parent f7c2e7fa4f
commit 0ac1e08d54
12 changed files with 448 additions and 124 deletions
+3
View File
@@ -88,9 +88,12 @@ int main(int argc, char** argv) {
pList.SetFont(&font);
App app(font);
while (pOs->Mainloop()) {
PD::Hid::Update();
pOs->ClearViewPort();
PD::Li::ResetPools(); // Move to other place (or refactor this)
app.Update(pOs->GetViewport(), pList);
pList.DrawText(5, std::format("Mouse: {}", PD::Hid::MousePos()).c_str(),
PD::Color("#ffffffff"));
PD::Gfx::Reset();
PD::Gfx::Draw(pList);
pList.Clear();