mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
bind_capture_test runs the shipping capture from input_driver.c and menu_driver.c: mouse buttons from a published pointer frame and from a driver that keeps a mouse per pad, and a user on another user's controller slot binding with their mouse and pad. The hotkey-sharer case guards the controller-slot meaning of the bind state's port; it passes on master.
27 lines
758 B
Makefile
27 lines
758 B
Makefile
CC ?= cc
|
|
PYTHON ?= python3
|
|
CFLAGS ?= -O2 -g1
|
|
CFLAGS += -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -std=gnu89 \
|
|
-DRARCH_INTERNAL -I../../.. -I../../../libretro-common/include
|
|
ifneq ($(SANITIZER),)
|
|
CFLAGS += -fsanitize=$(SANITIZER) -fno-omit-frame-pointer
|
|
endif
|
|
TARGET = bind_capture_test$(EXE)
|
|
SOURCES = bind_capture_test.c ../../../libretro-common/compat/compat_strl.c
|
|
|
|
all: $(TARGET)
|
|
|
|
driver_code.inc: extract.py ../../../input/input_driver.c ../../../menu/menu_driver.c
|
|
$(PYTHON) extract.py
|
|
|
|
$(TARGET): $(SOURCES) driver_code.inc ../../../input/input_pointer_frame.h
|
|
$(CC) $(CFLAGS) $(SOURCES) -o $@
|
|
|
|
check: $(TARGET)
|
|
$(RUNNER) ./$(TARGET)
|
|
|
|
clean:
|
|
rm -f driver_code.inc bind_capture_test bind_capture_test.exe
|
|
|
|
.PHONY: all check clean
|