From 1b8008c41a04ceeb3ac4970f469ce9420ec29241 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 15 Dec 2024 22:48:12 +1100 Subject: Windowing + keyboard and mouse input --- c2.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 c2.cpp (limited to 'c2.cpp') diff --git a/c2.cpp b/c2.cpp new file mode 100644 index 0000000..f6ad356 --- /dev/null +++ b/c2.cpp @@ -0,0 +1,16 @@ +#include "app.hpp" +extern "C" { +#include "plat.h" +} + +int main() { + App* app = App::create("c2"); + app->running = 1; + while (app->running) { + app->begin(); + if (app->mp(mbtn_left)) + print("%d, %d, %d\n", app->mx, app->my, app->scrolly); + app->end(); + } + app->destroy(); +} -- cgit v1.2.3-54-g00ecf