mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-11 11:17:34 +00:00
The touch UI (src/ui-touch, unmodified apart from WADA_WEB board guards) builds for macOS with CMake and runs in an SDL2 window: a compat layer for the Arduino/ESP-IDF/FreeRTOS surface, a MyMesh stand-in with a MeshBackend interface (DemoBackend now), and the web board's SDL display/touch/keyboard drivers. WEB_BUILD.md follows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
456 B
C
8 lines
456 B
C
#pragma once
|
|
// Pointer + keyboard state shared by the SDL event pump (host_main.cpp) and the
|
|
// board input drivers the UI calls (WebTouch.cpp: the heltecV4CapTouch* touch API,
|
|
// WebKeyboard.cpp: the CardKB external-keyboard API). All on the UI thread.
|
|
#include <stdint.h>
|
|
void webPointer(bool down, int x, int y); // in canvas pixels
|
|
void webKeyPush(uint8_t cardkb_code); // CardKB codes: ASCII, 0x08 BS, 0x0D Enter, 0x1B Esc, 0xB4-0xB7 arrows
|