mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update and fmt event
This commit is contained in:
parent
cfc16a18d1
commit
78bf25f1e0
@ -1,23 +1,23 @@
|
|||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_CARBON_LEGACY
|
#ifdef USE_CARBON_LEGACY
|
||||||
#include <Carbon/Carbon.h>
|
#include <Carbon/Carbon.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_COREFOUNDATION
|
#ifdef USE_COREFOUNDATION
|
||||||
#include <CoreFoundation/CoreFoundation.h>
|
#include <CoreFoundation/CoreFoundation.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_IOKIT
|
#ifdef USE_IOKIT
|
||||||
#include <IOKit/hidsystem/IOHIDLib.h>
|
#include <IOKit/hidsystem/IOHIDLib.h>
|
||||||
#include <IOKit/hidsystem/IOHIDParameter.h>
|
#include <IOKit/hidsystem/IOHIDParameter.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "../iohook.h"
|
#include "../iohook.h"
|
||||||
|
|
||||||
// #include "../logger_c.h"
|
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
// #include "../logger_c.h"
|
||||||
|
|
||||||
IOHOOK_API screen_data* hook_create_screen_info(unsigned char *count) {
|
IOHOOK_API screen_data* hook_create_screen_info(unsigned char *count) {
|
||||||
CGError status = kCGErrorFailure;
|
CGError status = kCGErrorFailure;
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "../iohook.h"
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#ifdef USE_XTEST
|
#ifdef USE_XTEST
|
||||||
#include <X11/extensions/XTest.h>
|
#include <X11/extensions/XTest.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../iohook.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
// #include "../logger.h"
|
// #include "../logger.h"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define USE_XKB 0
|
#define USE_XKB 0
|
||||||
@ -8,10 +8,9 @@
|
|||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#ifdef USE_XRECORD_ASYNC
|
#ifdef USE_XRECORD_ASYNC
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "../iohook.h"
|
|
||||||
|
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <X11/Xlibint.h>
|
#include <X11/Xlibint.h>
|
||||||
@ -22,15 +21,16 @@
|
|||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
// #endif
|
// #endif
|
||||||
#if defined(USE_XINERAMA) && !defined(USE_XRANDR)
|
#if defined(USE_XINERAMA) && !defined(USE_XRANDR)
|
||||||
#include <X11/extensions/Xinerama.h>
|
#include <X11/extensions/Xinerama.h>
|
||||||
#elif defined(USE_XRANDR)
|
#elif defined(USE_XRANDR)
|
||||||
#include <X11/extensions/Xrandr.h>
|
#include <X11/extensions/Xrandr.h>
|
||||||
#else
|
#else
|
||||||
// TODO We may need to fallback to the xf86vm extension for things like TwinView.
|
// TODO We may need to fallback to the xf86vm extension for things like TwinView.
|
||||||
// #pragma message("*** Warning: Xinerama or XRandR support is required to produce cross-platform mouse coordinates for multi-head configurations!")
|
// #pragma message("*** Warning: Xinerama or XRandR support is required to produce cross-platform mouse coordinates for multi-head configurations!")
|
||||||
// #pragma message("... Assuming single-head display.")
|
// #pragma message("... Assuming single-head display.")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../iohook.h"
|
||||||
// #include "../logger.h"
|
// #include "../logger.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
|
|
||||||
|
@ -14,17 +14,17 @@
|
|||||||
|
|
||||||
#ifdef USE_XKB
|
#ifdef USE_XKB
|
||||||
#ifdef USE_EVDEV
|
#ifdef USE_EVDEV
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
static bool is_evdev = false;
|
static bool is_evdev = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
static XkbDescPtr keyboard_map;
|
static XkbDescPtr keyboard_map;
|
||||||
#else
|
#else
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
static KeySym *keyboard_map;
|
static KeySym *keyboard_map;
|
||||||
static int keysym_per_keycode;
|
static int keysym_per_keycode;
|
||||||
static bool is_caps_lock = false, is_shift_lock = false;
|
static bool is_caps_lock = false, is_shift_lock = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_XKBCOMMON
|
#ifdef USE_XKBCOMMON
|
||||||
|
@ -6,28 +6,28 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "../iohook.h"
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#ifdef USE_XKB
|
#ifdef USE_XKB
|
||||||
#include <X11/XKBlib.h>
|
#include <X11/XKBlib.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_XF86MISC
|
#ifdef USE_XF86MISC
|
||||||
#include <X11/extensions/xf86misc.h>
|
#include <X11/extensions/xf86misc.h>
|
||||||
#include <X11/extensions/xf86mscstr.h>
|
#include <X11/extensions/xf86mscstr.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(USE_XINERAMA) && !defined(USE_XRANDR)
|
#if defined(USE_XINERAMA) && !defined(USE_XRANDR)
|
||||||
#include <X11/extensions/Xinerama.h>
|
#include <X11/extensions/Xinerama.h>
|
||||||
#elif defined(USE_XRANDR)
|
#elif defined(USE_XRANDR)
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <X11/extensions/Xrandr.h>
|
#include <X11/extensions/Xrandr.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_XT
|
#ifdef USE_XT
|
||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
|
|
||||||
static XtAppContext xt_context;
|
static XtAppContext xt_context;
|
||||||
static Display *xt_disp;
|
static Display *xt_disp;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../iohook.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
// #include "../logger.h"
|
// #include "../logger.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user