Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse capture partially functional on Linux - movement but no clicks. #138

Open
Dizzy611 opened this issue Oct 19, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@Dizzy611
Copy link

Describe the bug
When capturing the mouse on Debian Linux (Stable, using Xorg), the mouse captures movement but not clicks. Clicks do go through to the emulator's menu, even when captured, but not to the emulated machine.

To Reproduce

  1. Load mouse-enabled application (I'm using Windows 3.0) in MartyPC
  2. Capture mouse
  3. Attempt to move, notice mouse cursor is moving
  4. Attempt to click, notice no reaction

Expected behavior
Clicking should work properly

Environment (please complete the following information):

  • Linux/Debian 12 "bookworm" (Stable)
  • i5-1235U
  • Integrated Iris Xe (in i5-1235U CPU)

Build info

  • Built from version_0_2_3 on October 19th, 2024

Additional context
A test patch was applied, with the below added above line 122 in frontends/martypc_desktop_wgpu/src/event_loop/mod.rs. This caused all menu clicks to no longer work, and did not fix clicks in the emulated machine.

                WindowEvent::MouseInput { .. } => {
                    if emu.mouse_data.is_captured {
                        pass_to_egui = false;
                    }
                }
@Dizzy611 Dizzy611 added the bug Something isn't working label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants