DEKI/ENGINE 文档
手册 API 参考
deki-miyoo-boards 0.40.1
Deki 包参考
deki-miyoo-boards

将 Miyoo Mini 作为构建目标。在构建面板中选择它:Build 生成用于 Miyoo 菜单的应用,Install 将其放到掌机的 SD 卡上,无论是原厂固件还是 Onion OS,应用都会出现在 Apps 中。

仓库:github.com/dekiengine/deki-miyoo-boards · 最新版本:0.40.0 · 需要引擎 0.40.0 或更高版本 · 依赖:deki-input

使用 DekiEditor --packages-add deki-miyoo-boards <project> 或通过包管理器安装。引擎自身的组件和 C++ API 见 Deki 文档。

在编辑器中显示为 **Miyoo Boards**。

组件

组件 类别 说明
MiyooDisplaySetup Miyoo 在 Miyoo 掌机的屏幕上显示游戏。
MiyooInputSetup Miyoo 把 Miyoo 掌机的按键作为按键输入交给引擎。

功能开关

可以从构建中去掉的部分。带有 define 的功能通过该 define 开关,其余的随其组件一起被剥离。

功能 define 默认值
Display — 开
Input — 开

组件参考

MiyooDisplaySetup

在 Miyoo 掌机的屏幕上显示游戏。

检视器中的名称:Miyoo 显示设置 · 类别:Miyoo · 类型:DekiMiyoo::MiyooDisplaySetup

属性 类型 默认值 约束 说明
scale int32 0 0 到 8 每个屏幕像素对应的面板像素数。0 则放大到能容纳的最大尺寸。
rotate180 bool true 把帧旋转 180 度。Miyoo Mini 的面板是倒装的。

MiyooInputSetup

把 Miyoo 掌机的按键作为按键输入交给引擎。

检视器中的名称:Miyoo 输入设置 · 类别:Miyoo · 类型:DekiMiyoo::MiyooInputSetup

没有反射的属性。

更新日志

更新日志为英文。

0.40.0

Changed

  • minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.

0.30.0

Renamed projects, and the Miyoo Mini's memory

  • An app's .deki-app names its project (a hash of the project's folder, not the folder itself). After a project is renamed, an install says which app on the card is the same project under its earlier name and leaves it there, since it may hold the game's saves (EarlierAppsOfProject).
  • miyoo_mini states 80 MB of memory (externalMemorySize), so deki-3d checks a model against it as on a board: measured on a Miyoo Mini with Onion, Linux has 85 MB available before the game starts, and the rest is the game's code and screen buffers. It also grants packages memory:external, which the hosted memory serves from the same heap.

Stock firmware cards too

  • An install takes any Miyoo SD card, with Onion or the stock firmware: a removable drive with App/ and Emu/ at its top, as MainUI lays them out on both. It used to need Onion's .tmp_update/. The card list says which system each card has ("Miyoo SD card (E:, Onion)"). Tested on Onion only.
  • The target is called Miyoo Mini, not "Miyoo Mini (Onion OS)", and the code names follow what the app is: a MainUI app (MainUiApp.h, was OnionApp.h; resources/mainui/), on a Miyoo card (FindMiyooCards, IsMiyooCard, NamesMiyooCard).

Fixed

  • An install names its card as written: E:, E:\ and e:/ are the same card (NamesMiyooCard); only the exact E: was accepted. A drive that is not a Miyoo card is still refused, and the message lists the cards that are connected.

Changed

  • minEngine 0.30.0: the first release, built against engine 0.30.0.
  • miyoo_mini provides hosted (an operating system starts the game as a program), not desktop-os. Needs the editor release that names it so.

Added

  • The Miyoo Mini as a build target (miyoo_mini, framework miyoo): the editor's Miyoo builder cross-compiles the game with the Arm GNU toolchain it installs (a toolchain component), packs a MainUI app (App/<Folder>/ with config.json, launch.sh, the icon and the game's data), and installs it on the Miyoo's SD card, each file read back and checked.
  • The display (MiyooDisplaySetup): /dev/fb0 at the panel's ARGB8888, the game's 320x240 scaled by whole pixels and turned 180 degrees, flipped between pages in step with the panel's refresh, which it measures at start. Frames are presented on their own thread: the game draws into three buffers the display lends it, so a frame is handed over without a copy, and each row is widened straight into the panel's next page, with NEON for ARGB8888 at 1x and 2x. It holds each frame as many refreshes as the game's frame rate asks, says when a frame stays up longer than the rest (a visible hitch), and counts the frames shown for a frame-rate counter (IDisplay::GetFramesShown).
  • The buttons (MiyooInputSetup), MENU quitting the game.
  • It requires deki-input alone. The game's main(), memory and file system are the engine's (deki-engine-hosted), as for any game run as a program; deki-desktop-integration is not needed.
  • The platform's ARGB8888 screen and 64-pixel tiles for deki-3d's software rasteriser (DEKI_3D_TILE_SIZE=64).
  • Tests: the builder's toolchain file, CMake and MainUI app, installing on fake SD cards, and the row widening, whose NEON path they hold to the plain one pixel for pixel when built for the Miyoo.

更早的版本:CHANGELOG.md


由包的反射数据生成(引擎 0.40.1)。属性名就是场景文件中使用的键。重命名后会保留别名(兼容性)。