fakekey.h
#ifndef _HAVE_LIBFAKEKEY_H
#define _HAVE_LIBFAKEKEY_H
#include <stdio.h>
#include <stdlib.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xlibint.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/keysymdef.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>
#include <X11/Xos.h>
#include <X11/Xproto.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct FakeKey FakeKey;
typedef enum
{
FAKEKEYMOD_SHIFT = (1<<1),
FAKEKEYMOD_CONTROL = (1<<2),
FAKEKEYMOD_ALT = (1<<3),
FAKEKEYMOD_META = (1<<4)
} FakeKeyModifier;
FakeKey*
fakekey_init(Display *xdpy);
int
fakekey_press(FakeKey *fk,
const unsigned char *utf8_char_in,
int len_bytes,
int modifiers);
void
fakekey_repeat(FakeKey *fk);
void
fakekey_release(FakeKey *fk);
int
fakekey_reload_keysyms(FakeKey *fk);
int
fakekey_press_keysym(FakeKey *fk,
KeySym keysym,
int flags);
int
fakekey_send_keyevent(FakeKey *fk,
KeyCode keycode,
Bool is_press,
int modifiers);
#ifdef __cplusplus
}
#endif
#endif /* _HAVE_LIBFAKEKEY_H */
fakekey_press
int fakekey_press(FakeKey *fk, const unsigned char *utf8_char_in, int len_bytes, int modifiers)
Sends a Keypress to the server for the supplied UTF8 character.
FakeKey
struct FakeKey FakeKey
Opaque structure used for all operations.
Definition fakekey.h:35
fakekey_reload_keysyms
int fakekey_reload_keysyms(FakeKey *fk)
Resyncs the internal list of keysyms with the server.
fakekey_send_keyevent
int fakekey_send_keyevent(FakeKey *fk, KeyCode keycode, Bool is_press, int modifiers)
fakekey_release
void fakekey_release(FakeKey *fk)
Releases the currently held key ( from fakekey_press ).
fakekey_init
FakeKey * fakekey_init(Display *xdpy)
Initiates FakeKey.
fakekey_press_keysym
int fakekey_press_keysym(FakeKey *fk, KeySym keysym, int flags)
fakekey_press but with an X keysym rather than a UTF8 Char.
FakeKeyModifier
FakeKeyModifier
enumerated types for mb_pixbuf_img_transform
Definition fakekey.h:43
fakekey_repeat
void fakekey_repeat(FakeKey *fk)
Repreats a press of the currently held key ( from fakekey_press ).