19 lines
682 B
C
19 lines
682 B
C
#pragma once
|
|
|
|
#include <rfb/rfb.h>
|
|
|
|
#include "kmsvnc.h"
|
|
|
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
|
|
|
#define UINPUT_ABS_MAX INT16_MAX
|
|
#define UINPUT_MAX_KEY 256
|
|
|
|
#define INP_FATAL(...) { fprintf(stderr, __VA_ARGS__); return 1; }
|
|
#define INP_IOCTL_MUST(...) { int e; if (e = ioctl(__VA_ARGS__)) INP_FATAL("uinput ioctl error %d on line %d\n", e, __LINE__) }
|
|
#define INP_IOCTL_MAY(...) { int e; if (e = ioctl(__VA_ARGS__)) fprintf(stderr, "uinput ioctl error %d on line %d\n", e, __LINE__); }
|
|
|
|
void uinput_cleanup();
|
|
int uinput_init();
|
|
void rfb_key_hook(rfbBool down, rfbKeySym keysym, rfbClientPtr cl);
|
|
void rfb_ptr_hook(int mask, int screen_x, int screen_y, rfbClientPtr cl);
|