ruffle-rs / ruffle

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

Dead Maze: Right click opens context menu instead of triggering player action #16991

Closed JediFay closed 2 months ago

JediFay commented 3 months ago

Describe the bug

Right click opens context menu image

Expected behavior

It should trigger player action image

Content Location

http://deadmaze.com/alpha/chargeur-deadmeat.swf

Affected platform

Desktop app

Operating system

Windows 11

Browser

No response

Additional information

No response

torokati44 commented 3 months ago

Hmm, interesting, I can't reproduce on Linux, neither on Wayland, nor on X11. Is this perhaps due to some kind of accessibility setting that is turned on?

JediFay commented 3 months ago

Only happens on Windows 10/11

torokati44 commented 3 months ago

I know you don't have Windows either, @kjarosh, but is it possible that we do get some double-click events after all, it's just misinterpreted/disguised as something else in a çūr$ėd way somewhere before it gets to us? 😱

kjarosh commented 3 months ago

Unfortunately that game requires login, but by analyzing the code, the only possibility for the context menu to open is when the right mouse button is released. I'm not sure whether we are talking about LMB or RMB double-click, if LMB then I really do not see a possibility how that could happen, but if it's RMB then I suspect it might have something to do with this TODO:

https://github.com/ruffle-rs/ruffle/blob/23b7810a0761728c9e7c03114cb549cb309b3479/desktop/src/app.rs#L260

torokati44 commented 3 months ago

Unfortunately that game requires login,

Nah, I was able to get in game just by leaving the input fields empty... 🤷‍♂️

kjarosh commented 3 months ago

You're right! Never thought about that...

So playing around I am 90% sure it's that TODO, because the player should be performing actions on RMB. So I suspect that it has nothing to do with double LMB clicking but just RMB clicking, is that right @JediFay ?

JediFay commented 3 months ago

Yes

kjarosh commented 3 months ago

So it seems that in general right click events are not implemented (rightClick, rightMouseUp, rightMouseDown)