Files
RetroArch/samples/menu/mouse_click/Makefile
LibretroAdmin 297d5374f5 CI: a mouse in the menu - left click, right click, wheel, movement
After the pen support was merged, a left click in the menu was thrown
away and nothing in CI noticed: it gave every pointer that is not a
touchscreen no gesture on release, and a mouse's left click reaches the menu
drivers as a tap gesture. Moving the pointer, the wheel and the right
button take other paths and kept working. It was in shared menu code,
so every platform and every menu driver was affected, and no CI job
clicks anything.

samples/menu/mouse_click links the shipping objects with only main()
replaced, like the other menu harnesses, and drives the real frame
loop with a scripted mouse. It finds the Settings row by asking the
menu which entry is under the pointer, so the layout stays the menu
driver's business, then:

- opens Settings with a left click;
- scrolls its list with the wheel, down and up;
- goes back with a right click;
- checks that a press held for two seconds is not a click.

The null video driver has no viewport and never draws a menu frame,
and RGUI reads the pointer while drawing, so the harness's video
driver supplies both the way a real one does.

With the removed check put back, the harness fails on the left click
and on nothing else, which is the bug as it was reported. It runs in
the menu harness workflow, on every change under menu/.
2026-10-02 07:10:06 +02:00

14 lines
343 B
Makefile

# See build.sh: this harness links the shipping RetroArch objects with
# only main() replaced, so it needs the project's own build rather
# than a source list of its own.
TARGET := menu_mouse_click_test
all:
@./build.sh
clean:
rm -f $(TARGET) retroarch_nomain.o retroarch_nomain.d \
harness_main.o harness_main.d
.PHONY: all clean