Go to the documentation of this file.
44 #if defined(USYNERGY_LITTLE_ENDIAN) && defined(USYNERGY_BIG_ENDIAN)
46 #error "Can't define both USYNERGY_LITTLE_ENDIAN and USYNERGY_BIG_ENDIAN"
47 #elif !defined(USYNERGY_LITTLE_ENDIAN) && !defined(USYNERGY_BIG_ENDIAN)
49 #if defined(__LITTLE_ENDIAN__) || defined(LITTLE_ENDIAN) || (_BYTE_ORDER == _LITTLE_ENDIAN)
50 #define USYNERGY_LITTLE_ENDIAN
51 #elif defined(__BIG_ENDIAN__) || defined(BIG_ENDIAN) || (_BYTE_ORDER == _BIG_ENDIAN)
52 #define USYNERGY_BIG_ENDIAN
54 #error "Can't detect endian-nes, please defined either USYNERGY_LITTLE_ENDIAN or USYNERGY_BIG_ENDIAN";
72 #define USYNERGY_FALSE 0
73 #define USYNERGY_TRUE 1
101 #define USYNERGY_NUM_JOYSTICKS 4
103 #define USYNERGY_PROTOCOL_MAJOR 1
104 #define USYNERGY_PROTOCOL_MINOR 4
106 #define USYNERGY_IDLE_TIMEOUT 2000
108 #define USYNERGY_TRACE_BUFFER_SIZE 1024
109 #define USYNERGY_REPLY_BUFFER_SIZE 1024
110 #define USYNERGY_RECEIVE_BUFFER_SIZE 4096
117 #define USYNERGY_MODIFIER_SHIFT 0x0001
118 #define USYNERGY_MODIFIER_CTRL 0x0002
119 #define USYNERGY_MODIFIER_ALT 0x0004
120 #define USYNERGY_MODIFIER_META 0x0008
121 #define USYNERGY_MODIFIER_WIN 0x0010
122 #define USYNERGY_MODIFIER_ALT_GR 0x0020
123 #define USYNERGY_MODIFIER_LEVEL5LOCK 0x0040
124 #define USYNERGY_MODIFIER_CAPSLOCK 0x1000
125 #define USYNERGY_MODIFIER_NUMLOCK 0x2000
126 #define USYNERGY_MODIFIER_SCROLLOCK 0x4000
#define USYNERGY_REPLY_BUFFER_SIZE
uSynergyBool(* uSynergyConnectFunc)(uSynergyCookie cookie)
Connect function.
const char * m_clientName
uint32_t m_sequenceNumber
void(* uSynergyKeyboardCallback)(uSynergyCookie cookie, uint16_t key, uint16_t modifiers, uSynergyBool down, uSynergyBool repeat)
Key event callback.
GLenum GLuint GLenum GLsizei length
void(* uSynergyScreenActiveCallback)(uSynergyCookie cookie, uSynergyBool active)
Screen active callback.
void(* uSynergyTraceFunc)(uSynergyCookie cookie, const char *text)
Trace function.
@ USYNERGY_CLIPBOARD_FORMAT_BITMAP
void(* uSynergyClipboardCallback)(uSynergyCookie cookie, enum uSynergyClipboardFormat format, const uint8_t *data, uint32_t size)
Clipboard event callback.
uSynergyTraceFunc m_traceFunc
uSynergyBool(* uSynergyReceiveFunc)(uSynergyCookie cookie, uint8_t *buffer, int maxLength, int *outLength)
Receive function.
uSynergyClipboardCallback m_clipboardCallback
@ USYNERGY_CLIPBOARD_FORMAT_TEXT
void uSynergyUpdate(uSynergyContext *context)
Update uSynergy.
void(* uSynergyMouseCallback)(uSynergyCookie cookie, uint16_t x, uint16_t y, int16_t wheelX, int16_t wheelY, uSynergyBool buttonLeft, uSynergyBool buttonRight, uSynergyBool buttonMiddle)
Mouse callback.
uSynergySendFunc m_sendFunc
uSynergyBool m_mouseButtonMiddle
GLint GLint GLsizei GLint GLenum format
uSynergyBool m_mouseButtonRight
uSynergyJoystickCallback m_joystickCallback
#define USYNERGY_NUM_JOYSTICKS
Constants and limits.
uSynergyBool m_hasReceivedHello
uint32_t m_lastMessageTime
void(* uSynergyJoystickCallback)(uSynergyCookie cookie, uint8_t joyNum, uint16_t buttons, int8_t leftStickX, int8_t leftStickY, int8_t rightStickX, int8_t rightStickY)
Joystick event callback.
uSynergyReceiveFunc m_receiveFunc
const SETUP_TEARDOWN_TESTCONTEXT char * key
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
uSynergyBool(* uSynergySendFunc)(uSynergyCookie cookie, const uint8_t *buffer, int length)
Send function.
uSynergyConnectFunc m_connectFunc
uSynergyGetTimeFunc m_getTimeFunc
uSynergyMouseCallback m_mouseCallback
@ USYNERGY_CLIPBOARD_FORMAT_HTML
uSynergyClipboardFormat
Clipboard types.
uint32_t(* uSynergyGetTimeFunc)()
Get time function.
uSynergyScreenActiveCallback m_screenActiveCallback
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
uSynergyBool m_isCaptured
uSynergyBool m_mouseButtonLeft
uSynergyKeyboardCallback m_keyboardCallback
void(* uSynergySleepFunc)(uSynergyCookie cookie, int timeMs)
Thread sleep function.
void uSynergyInit(uSynergyContext *context)
Initialize uSynergy context.
uSynergySleepFunc m_sleepFunc
#define USYNERGY_RECEIVE_BUFFER_SIZE
void uSynergySendClipboard(uSynergyContext *context, const char *text)
Send clipboard data.
int uSynergyBool
Boolean type.
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01