Files
RetroArch/samples/input/pointer_frame/Makefile
T
davey d94e1409cd android: publish the mouse and every touch to the frontend
The touches on the main window and on the second display go to the
frontend's pointer publication each poll, raw, each with the window it
is in, and the publication answers the pointer, the screen pointer,
the second display's pointer and a lightgun aimed by touch. The mouse
stays the driver's: its motion and wheel are taken by each read, as
before.

Every answer is as it was; the pointer_frame test checks each one the
publication gives against the driver's own answers before this change.
Three things differ. Binds to the mouse's left, right and middle buttons
now work: they never fired on Android. And a touch is placed at the
first read after the poll instead of as its event came, so a finger held
still while the viewport changes follows the change at once.

And a tap on a main window that shows no screen is on nothing: it fires
no lightgun button there, while a tap in the letterbox still does.
2026-11-07 21:28:27 +01:00

29 lines
791 B
Makefile

TARGET := pointer_frame_test
REPO_ROOT := ../../..
CFLAGS += -Wall -std=gnu99 -O1 -g1 -DRARCH_INTERNAL -DHAVE_VIDEO_WINDOWS \
-DHAVE_OVERLAY \
-I$(REPO_ROOT) -I$(REPO_ROOT)/libretro-common/include -I$(REPO_ROOT)/deps
ifeq ($(SANITIZER),address)
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
LDFLAGS += -fsanitize=address
endif
ifeq ($(SANITIZER),undefined)
CFLAGS += -fsanitize=undefined -fno-sanitize-recover=undefined
LDFLAGS += -fsanitize=undefined
endif
all: $(TARGET)
$(TARGET): pointer_frame_test.c $(REPO_ROOT)/input/input_pointer_frame.h \
$(REPO_ROOT)/input/drivers/android_pointers.h
$(CC) $(CFLAGS) -o $@ pointer_frame_test.c $(LDFLAGS)
check: all
./$(TARGET)
clean:
rm -f $(TARGET)
.PHONY: all check clean