Skip to content

NBT App SDK 0.3.0

Pre-release
Pre-release

Choose a tag to compare

@fpoussin fpoussin released this 28 Nov 18:26
· 43 commits to main since this release
ffe1870

Touch screen input for applications, and car data for modules and guests. Source only; an application pins this commit in its release/sdk.ref.

Serves

  • Bridge up to 1.10: touch (scaled touch pointer input via nbt::touch::Pointer), plus everything of 0.2.0.
  • Host ABI 1.1 for modules and guests, unchanged.
  • NBT toolchain 1.2.0, unchanged.

New

  • nbt::touch::Pointer and Lifecycle::touch_fd() expose touch frames and panel-to-window scaled pointer events (Down, Move, Up, Cancel) to native programs, modules and guests.
  • CarData works in modules and guests (NBT_CDS_DIR read-only through nbt-runner), matching native programs.
  • Audio mixer: NBT_AUDIO_ROUTE_NOTE keeps native media audio connections separate from iDrive, NBTMIXE ends an idle mixer on connection change, and the mixer state file tracks gaps and grown queues for the self test.

Fixed

  • Companion::init() fails in modules and guests where the phone page descriptor is absent, instead of failing later on publish().

What applications must change

Nothing for existing controller/gamepad applications. Applications adding touch declare --bridge 1.10 with touch (typically optional, alongside show) and poll nbt::touch::Pointer.