mirror of https://github.com/nirenjan/libx52.git
27 lines
625 B
C
27 lines
625 B
C
/*
|
|
* Saitek X52 Pro MFD & LED driver - Mouse driver
|
|
*
|
|
* Copyright (C) 2021 Nirenjan Krishnan (nirenjan@nirenjan.org)
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH Classpath-exception-2.0
|
|
*/
|
|
|
|
#ifndef X52D_MOUSE_H
|
|
#define X52D_MOUSE_H
|
|
|
|
#include <stdbool.h>
|
|
#include "libx52io.h"
|
|
|
|
extern volatile bool mouse_enabled;
|
|
extern volatile int mouse_delay;
|
|
extern volatile int mouse_mult;
|
|
|
|
#define MOUSE_MULT_FACTOR 4
|
|
|
|
void x52d_mouse_evdev_thread_control(bool enabled);
|
|
void x52d_mouse_evdev_init(void);
|
|
void x52d_mouse_evdev_exit(void);
|
|
void x52d_mouse_report_event(libx52io_report *report);
|
|
|
|
#endif // !defined X52D_MOUSE_H
|