diff --git a/CMakeLists.txt b/CMakeLists.txt index a10a67f..e614686 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,12 +9,14 @@ project( VERSION 1.0 LANGUAGES C) +set(EXECUTABLE_NAME "rogue-enemy") + set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) # Adding something we can run - Output name matches target name -add_executable(${PROJECT_NAME} dev_iio.c input_dev.c logic.c main.c output_dev.c platform.c queue.c settings.c virt_ds4.c) +add_executable(${EXECUTABLE_NAME} dev_iio.c input_dev.c logic.c main.c output_dev.c platform.c queue.c settings.c virt_ds4.c) -target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads -levdev -lconfig) +target_link_libraries(${EXECUTABLE_NAME} PRIVATE Threads::Threads -levdev -lconfig) -set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C) +set_target_properties(${EXECUTABLE_NAME} PROPERTIES LINKER_LANGUAGE C) diff --git a/Makefile b/Makefile index ea15479..233d336 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CFLAGS= -O3 -march=znver4 -D _DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -std=c11 LDFLAGS=-lpthread -levdev -lconfig -lrt -lm -flto=full CC=clang OBJECTS=main.o input_dev.o dev_iio.o output_dev.o queue.o logic.o platform.o settings.o virt_ds4.o -TARGET=rogue_enemy +TARGET=rogue-enemy all: $(TARGET) diff --git a/README.md b/README.md index 9e0a818..3e90382 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,14 @@ # ROGueENEMY Collects ROG Ally input events to a single (active) virtual controller in linux to allow the use of the gyroscope and every button but also maximize controller compatibility with multiple games. -## Steam Configuration -In the emulated PS4 controller remember to remove the default deadzone for both left and right joystick: the ROG ally joystics appears to be way better than DS4 ones. +## Usage +On steam head for settings for the emulated PS4 controller and remove the default deadzone for both left and right joystick: the ROG ally joystics appears to be way better than DS4 ones. + +On steam disable *Nintendo buttons layout* and rely on the proper configuration option on this software to accomplish what you seek. + +Tweak ff_rumble to a value between 0 and 100 to configure the strenght for rumble output. + +Remember to look /etc/ROGueENEMY/config.cfg for additional configurations. ## Compilation To compile from source you need CMake and make. After the usual git clone and cd inside the cloned directory to use CMake do: