Added -arch=znver4 to makefile
This commit is contained in:
parent
c31e459b68
commit
55cc4aca90
2 changed files with 2 additions and 8 deletions
2
Makefile
2
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
#CFLAGS= -g -O0 -D _DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -std=c11 -fPIE -pedantic -Wall # -Werror
|
||||
CFLAGS= -O3 -D _DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -std=c11 -fPIE -pedantic -Wall -flto=full # -Werror
|
||||
CFLAGS= -O3 -march=znver4 -D _DEFAULT_SOURCE -D_POSIX_C_SOURCE=200112L -std=c11 -fPIE -pedantic -Wall -flto=full # -Werror
|
||||
LDFLAGS=-lpthread -levdev -lrt -lm -flto=full
|
||||
CC=clang
|
||||
OBJECTS=main.o input_dev.o dev_iio.o output_dev.o queue.o logic.o platform.o virt_ds4.o
|
||||
|
|
|
|||
|
|
@ -558,13 +558,7 @@ static void decode_ev(output_dev_t *const out_dev, message_t *const msg) {
|
|||
|
||||
if (msg->data.event.ev[0].type == EV_REL) {
|
||||
msg->data.event.ev_flags |= EV_MESSAGE_FLAGS_MOUSE;
|
||||
} /*else if ((msg->data.event.ev[0].type == EV_KEY) || (msg->data.event.ev[1].type == EV_KEY)) {
|
||||
if ((msg->data.event.ev[0].code == BTN_MIDDLE) || (msg->data.event.ev[0].code == BTN_LEFT) || (msg->data.event.ev[0].code == BTN_RIGHT)) {
|
||||
msg->data.event.ev_flags |= EV_MESSAGE_FLAGS_PRESERVE_TIME | EV_MESSAGE_FLAGS_MOUSE;
|
||||
} else if ((msg->data.event.ev[1].code == BTN_MIDDLE) || (msg->data.event.ev[1].code == BTN_LEFT) || (msg->data.event.ev[1].code == BTN_RIGHT)) {
|
||||
msg->data.event.ev_flags |= EV_MESSAGE_FLAGS_PRESERVE_TIME | EV_MESSAGE_FLAGS_MOUSE;
|
||||
}
|
||||
}*/ else if ((msg->data.event.ev_count >= 2) && (msg->data.event.ev[0].type == EV_MSC) && (msg->data.event.ev[0].code == MSC_SCAN)) {
|
||||
} else if ((msg->data.event.ev_count >= 2) && (msg->data.event.ev[0].type == EV_MSC) && (msg->data.event.ev[0].code == MSC_SCAN)) {
|
||||
if ((msg->data.event.ev[0].value == -13565784) && (msg->data.event.ev[1].type == EV_KEY) && (msg->data.event.ev[1].code == KEY_F18)) {
|
||||
if (msg->data.event.ev[1].value == 1) {
|
||||
printf("Detected mode switch command, switching mode...\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue