Skip to content

This is a pull request for adapting to the OpenHarmony platform.#19044

Open
likuai2010 wants to merge 36 commits into
libretro:masterfrom
xiaobaigroup:ohos
Open

This is a pull request for adapting to the OpenHarmony platform.#19044
likuai2010 wants to merge 36 commits into
libretro:masterfrom
xiaobaigroup:ohos

Conversation

@likuai2010

Copy link
Copy Markdown

This pull request adds OpenHarmony platform support for the ARM64 architecture.

Key additions:

Video drivers: Added GLESv3 and Vulkan video drivers, enabling hardware-accelerated rendering on OpenHarmony-compatible devices.

Audio driver: Integrated OpenSL ES audio driver for low-latency audio output.

Input support: Implemented touchscreen and keyboard input handling.

Platform target: Added ARM64 build configuration for OpenHarmony (OHOS) in the build system.

These changes allow RetroArch to run natively on OpenHarmony-based devices (e.g., HarmonyOS NEXT, development boards, and other OHOS platforms).

Comment thread frontend/drivers/platform_unix.c Outdated
napi_get_named_property(env, args[0], "deviceId", &temp_val);
napi_get_value_int32(env, temp_val, &event.deviceId);

// 提取 type

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to remove Chinese comment ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@gouchi

gouchi commented May 23, 2026

Copy link
Copy Markdown
Member

Please add an entry to CHANGES.md about HarmonyOS support something like

HARMONYOS: Add HarmonyOS support

And the new OS to the platforms section of the README.md.

Thank you.

@LibretroAdmin

Copy link
Copy Markdown
Contributor

We can't give you distribution rights unfortunately. We can review and eventually merge this PR though

@likuai2010

Copy link
Copy Markdown
Author

We can't give you distribution rights unfortunately. We can review and eventually merge this PR though

No problem, I understand. Thank you for looking into it and considering merging the PR.

@likuai2010 likuai2010 force-pushed the ohos branch 2 times, most recently from 01bc910 to 5b92066 Compare May 28, 2026 03:28
xiaobai added 8 commits June 27, 2026 12:36
* commit '4a0c27429ff989752604473104a3bf1adfb0f3a0': (136 commits)
  Fetch translations from Crowdin
  XMB: Scale factor + missing assets improvements
  rgui: don't pre-center custom viewport (fixes right-aligned menu)
  configuration: heap-allocate saved_binds in config_save_file
  configuration: heap-allocate config_save_overrides override binds
  menu: replace rand() with inline xorshift32 in screensaver and rgui
  ui: don't construct Qt companion at startup on Qt6 (fixes headless crash)
  ai/game_ai: fail gracefully when game_ai library is unavailable
  wayland: don't block on frame callback when swap interval is 0
  win32: don't let a missing TTS voice abort accessibility speech
  x11: set _NET_WM_NAME (UTF8_STRING) in screensaver inhibit path too
  audio/alsa: use portable <errno.h> instead of <asm-generic/errno.h>
  Fetch translations from Crowdin
  netplay: free lobby room state at shutdown
  netplay: clear core netpacket interface on core deinit
  state: add auto-increment savestate diagnostics (no behavior change)
  input/sdl: clean up partially-opened controller on failed pad connect
  net_http: fix dead #ifdef __WIN32 guard on cheevos timeout workaround
  qb: detect desktop OpenGL libs even when OpenGLES is also enabled
  qb: disable dispmanx at configure time when VideoCore is unavailable
  ...

# Conflicts:
#	input/input_driver.c
(cherry picked from commit 8f09322)
(cherry picked from commit e98d16a)
(cherry picked from commit eaf0562)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants