summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-12-11 15:41:38 -0800
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2022-12-11 16:24:04 -0800
commite021eeee19672ac430419fff64ea91b5f25064ee (patch)
tree7c0565996e870f71c20f6e7090c37d0de82e5a5b
parent48789de8089b8ea7a269894f81e28fe026a8e322 (diff)
Add missing prototypes for SimulateDevice{Button,Key}{Press,Release}Event()
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r--xts5/include/xtlibproto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/xts5/include/xtlibproto.h b/xts5/include/xtlibproto.h
index d8fb4a78..11d3919c 100644
--- a/xts5/include/xtlibproto.h
+++ b/xts5/include/xtlibproto.h
@@ -112,6 +112,10 @@ makes no representations about the suitability of this software for any
purpose. It is provided "as is" without express or implied warranty.
*/
+#ifdef INPUTEXTENSION
+#include <X11/extensions/XInput.h>
+#endif
+
void startup(void);
void cleanup(void);
void fontstartup(void);
@@ -322,6 +326,12 @@ Status SimulateKeyPressEvent(Display *dpy, KeyCode keycode);
Status SimulateKeyReleaseEvent(Display *dpy, KeyCode keycode);
Status SimulateButtonPressEvent(Display *dpy, unsigned int button);
Status SimulateButtonReleaseEvent(Display *dpy, unsigned int button);
+#ifdef INPUTEXTENSION
+Status SimulateDeviceKeyPressEvent(Display *dpy, XDevice *dev, unsigned int button);
+Status SimulateDeviceKeyReleaseEvent(Display *dpy, XDevice *dev, unsigned int button);
+Status SimulateDeviceButtonPressEvent(Display *dpy, XDevice *dev, unsigned int button);
+Status SimulateDeviceButtonReleaseEvent(Display *dpy, XDevice *dev, unsigned int button);
+#endif
Status CompareCursorWithWindow(Display *dpy, Window window, Cursor cursor);
Status CompareCurrentWithWindow(Display *dpy, Window window);
Status SimulateMotionEvent(Display *dpy, int screen, int x, int y);