ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.16k stars 779 forks source link

Speed Eaters (Kirby & The Amazing Mirror official website flash) | A button doesn't work. #10068

Open SeruranBlue opened 1 year ago

SeruranBlue commented 1 year ago

Describe the bug

https://www.nintendo.co.jp/n08/bk8j/setu_p/index.html You can play this game by clicking the screen, pressing A key or pressing A button of GBA photo. However, the A button doesn't work with ruffle.

Expected behavior

https://user-images.githubusercontent.com/121824800/225190258-5e0c3a9c-4f66-4397-a537-2d6785a1c775.mp4

Affected platform

Desktop app

Operating system

Windows 10

Browser

Chrome 111.0.5563.65

Additional information

ruffle-nightly-2023_03_15-windows-x86_64 Ruffle extension nightly 2023-03-14

n0samu commented 1 year ago

This site uses LocalConnection to allow the main SWF and the A button SWF to communicate. When you press the A button, it uses LocalConnection.send to tell the main game SWF that the button was pressed:

send_lc = new LocalConnection();
myBtn.onPress = function()
{
    send_lc.send("abtn","Aaction");
};

This functionality is not yet implemented in Ruffle; see #259.