mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-12 02:27:35 +00:00
Work in progress, handed to the web-mobile branch: - the canvas size is the board's resolution, picked at boot from the window (WebDisplay runtime size, host --size WxH); a phone held upright gets a 480-wide portrait canvas on the large-screen portrait layouts; turning the phone restarts the UI in the other layout (data kept) - the phone's own keyboard: a hidden textarea opened inside the tap's gesture, its edits forwarded as UTF-8 text + Backspace/Enter through the CardKB path (cardKbUiKey passes BLE_KEY_TEXT through); CAP_NATIVE_KEYBOARD keeps the UI's own keys down; the screen slides above the keyboard - viewport/safe-area/overscroll, web app manifest, More menu (Reset too), bar stays on one row, chooser notes for iOS and the http/https copies, a mixed-content ws:// failure explains the http copy - web/scripts/mobile-tour.mjs (iPhone 14, Pixel 7) Known open: the mobile tour's UTF-8 storage check fails (the bubble shows the text; the stored history does not match the needle; on desktop, Playwright's insertText of a non-ASCII char sends no keydown and is lost). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
649 B
C++
14 lines
649 B
C++
#pragma once
|
|
// The web board: mesh::MainBoard for a host. No battery, no GPIO, no radio front end.
|
|
#include <MeshCore.h>
|
|
class WebBoard : public mesh::MainBoard {
|
|
public:
|
|
uint16_t getBattMilliVolts() override { return 0; } // CAP_BATTERY 0: never shown
|
|
const char* getManufacturerName() const override { return "wadamesh web"; }
|
|
void reboot() override; // web/platform/host_main.cpp
|
|
void powerOff() override;
|
|
uint8_t getStartupReason() const override { return BD_STARTUP_NORMAL; }
|
|
};
|
|
// CAP_NATIVE_KEYBOARD: the phone's own keyboard types (web/platform/WebKeyboard.cpp).
|
|
bool boardNativeKeyboard();
|