Skip to content

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

@Dizzy611

Description

@Dizzy611

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;
                    }
                }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions