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

将 Anbernic RG40XX H 作为构建目标。在构建面板中选择它:Build 生成用于掌机原厂固件的应用,Install 将其放到 SD 卡上或通过 Wi-Fi 发送过去,应用会出现在 Apps 列表中。

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

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

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

组件

组件 类别 说明
AnbernicDisplaySetup Anbernic 在 Anbernic 掌机的屏幕上显示游戏。
AnbernicInputSetup Anbernic 把 Anbernic 掌机的按键作为键盘按键传给引擎。

功能开关

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

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

组件参考

AnbernicDisplaySetup

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

检视器中的名称:Anbernic 显示设置 · 类别:Anbernic · 类型:DekiAnbernic::AnbernicDisplaySetup

属性 类型 默认值 约束 说明
scale int32 0 0 到 8 每个屏幕像素对应的面板像素数。0 表示在能放下的范围内放到最大。
panelWidth int32 640 1 到 4096 面板的宽度(像素)。RG40XX H 为 640。
panelHeight int32 480 1 到 4096 面板的高度(像素)。RG40XX H 为 480。

AnbernicInputSetup

把 Anbernic 掌机的按键作为键盘按键传给引擎。

检视器中的名称:Anbernic 输入设置 · 类别:Anbernic · 类型:DekiAnbernic::AnbernicInputSetup

没有反射的属性。

更新日志

更新日志为英文。

0.40.0

The Anbernic RG40XX H as a build target

  • anbernic_rg40xx_h: 640x480 ARGB8888, cross-compiled with Arm's aarch64-none-linux-gnu toolchain and linked static.
  • Display: sets /dev/fb0 to the panel's size in ARGB8888 with two pages, flips between them on its own thread, and puts the firmware's mode back when the game quits.
  • Input: the buttons from the ANBERNIC-keys device, the d-pad and the left stick as keys; Menu quits.
  • Install: <Name>.sh and <Name>/ in Roms/APPS/ on a stock firmware card, with Imgs/<Name>.png as its picture. The script goes last, so the Apps list shows the game only once it is whole.

Install over Wi-Fi

  • With the handheld's address in the platform (Install over Wi-Fi: frameworkOptions sshHost, sshUser, sshCard), Install offers it beside the SD cards, as the target ssh:root@<address>. It copies with the computer's own ssh and scp, logs in with its key only, and installs as onto a card: a hidden folder first, every file checked against the build (SHA-256) before it replaces the old app, the script last, an app the editor did not install left alone. A refused login says how to add the key; the README has the steps, and the stock firmware's /root permissions trap.

Sticks

  • Both sticks are read as sticks (DekiInput::GetStick), from -1 to 1 over each axis' own range; the left one still sends the arrow keys too.

Measuring

  • A file named profile beside the game turns on a report in its log every 2 s: frames and their spacing, the engine's update, render and present, each kind of component and blit path, the costliest objects, and the display thread's copy. With trace in that file, every frame also goes to trace.txt: when it was handed over, its time step, the camera in screen pixels, and when it went up on the panel.

更早的版本:CHANGELOG.md


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