Skip to content

v1.1.0 Mouse positioning & drag release

Choose a tag to compare

@markusg1234 markusg1234 released this 17 Jul 11:46
· 182 commits to main since this release

Absolute positioning & mouse_goto

  • mouse_abs — move the cursor to an exact position by percent, pixel (mouse_abs_px), or per-monitor (mouse_abs_mon), plus mouse_abs_save / mouse_abs_restore
  • mouse_goto:<x>:<y> — jump to an exact Windows virtual-desktop pixel across all monitors (homes the absolute pointer, then steps relatively with phased X/Y movement to prevent drift)
  • Per-axis, per-host calibration (mouse_goto_scale_x/_y) persisted to NVS, with YAML screen_width/screen_height and multi-monitors regions

Web Position Finder

  • New card on the web control page: aim on a live desktop map to move the cursor, copy ready-made mouse_goto values into buttons/macros
  • Live calibration with ±nudges, per-host save, reset to YAML defaults, and lock/Edit toggle so stray taps can't move the cursor
  • Helper scripts docs/cursorpos.bat / docs/cursor_saverestore.bat for reading the real Windows cursor position while calibrating

Click-and-hold / drag — thanks @repaxan (#16)

  • send_mouse_click_start() / send_mouse_click_release() with held buttons carried through move, scroll, and mouse_goto → true drag-and-drop, including drag-to-location
  • New action strings: left/right/middle_click_hold, mouse_hold:<mask>, mouse_release
  • Web UI & HA mouse card: long-press a mouse button to hold (tap again to release); new mouse_hold/mouse_release REST endpoints and HA services
  • Report characteristic values now stay readable/in sync for hosts that read instead of subscribing

Web control fixes & improvements

  • Touchpad now owns every touch — no more page scrolling stealing a drag mid-gesture
  • Much lower cursor latency: coalesced single-in-flight move requests and instant device-side sends (direction reversals register immediately)
  • Macro repeat action (repeat:N:<action>), zoom level persisted in the browser, build version badge

Compatibility

  • Builds warning-free on ESPHome 2026.7.0 (new ESP-IDF toolchain int32 format fixes)

Upgrade notes

  • Fully backward compatible — new YAML options and services are optional
  • Pin this release with ref: v1.1.0 in external_components (or track main)
  • HA card users: copy the updated docs/mouse-card.js into config/www/ and add the mouse_hold/mouse_release services (see README) for long-press drag
  • Hard-refresh the web page after flashing — the badge should read v1.1.0