Debug output
This commit is contained in:
parent
5696a84bf5
commit
7e38155d2e
4 changed files with 7 additions and 5 deletions
|
|
@ -176,14 +176,14 @@ static void* input_read_thread_func(void* ptr) {
|
|||
// TODO: perform a memove
|
||||
fprintf(stderr, "MEMMOVE NEEDED\n");
|
||||
} else {
|
||||
/*
|
||||
#if defined(INCLUDE_INPUT_DEBUG)
|
||||
printf(
|
||||
"Event: %s %s %d\n",
|
||||
"Input: %s %s %d\n",
|
||||
libevdev_event_type_get_name(read_ev.type),
|
||||
libevdev_event_code_get_name(read_ev.type, read_ev.code),
|
||||
read_ev.value
|
||||
);
|
||||
*/
|
||||
#endif
|
||||
|
||||
// just copy the input event
|
||||
msg->ev[msg->ev_count] = read_ev;
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "queue.h"
|
||||
|
||||
#define INCLUDE_INPUT_DEBUG
|
||||
|
||||
#define INPUT_DEV_CTRL_FLAG_EXIT 0x00000001U
|
||||
|
||||
typedef enum input_dev_type {
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ void *output_dev_thread_func(void *ptr) {
|
|||
ev.code = BTN_TL2;
|
||||
}
|
||||
|
||||
#if defined(INCLUDE_DEBUG)
|
||||
#if defined(INCLUDE_OUTPUT_DEBUG)
|
||||
printf(
|
||||
"Received event %s (%s): %d\n",
|
||||
libevdev_event_type_get_name(ev.type),
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#define GYRO_DEADZONE 1 // degrees/s to count as zero movement
|
||||
|
||||
#undef INCLUDE_TIMESTAMP
|
||||
#define INCLUDE_DEBUG
|
||||
#define INCLUDE_OUTPUT_DEBUG
|
||||
|
||||
typedef enum output_dev_type {
|
||||
output_dev_gamepad,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue