![]() |
Gestro
|
Used to send keyboard events. More...
#include <KeyboardEvent.h>

Public Member Functions | |
| KeyboardEvent (void) | |
| XKeyEvent | createKeyEvent (Display *display, Window &win, Window &winRoot, bool press, int keycode, int modifiers) |
| void | keyPress (Display *display, int keycode) |
Used to send keyboard events.
Definition at line 10 of file KeyboardEvent.h.
| KeyboardEvent::KeyboardEvent | ( | void | ) |
Constructor
Definition at line 5 of file KeyboardEvent.cpp.
| XKeyEvent KeyboardEvent::createKeyEvent | ( | Display * | display, |
| Window & | win, | ||
| Window & | winRoot, | ||
| bool | press, | ||
| int | keycode, | ||
| int | modifiers | ||
| ) |
It creates a key event that can be sent to the X server
| display | The display that the event is occuring on. |
| win | The window that the event is occuring on. |
| winRoot | The root window is the first window that all windows in the display are descended from. |
| press | whether the key is pressed or released |
| keycode | The X11 defined code for the key that is simulated. |
| modifiers | This is a bitmask that specifies the modifier keys that are pressed. |
Definition at line 7 of file KeyboardEvent.cpp.

| void KeyboardEvent::keyPress | ( | Display * | display, |
| int | keycode | ||
| ) |
It creates a fake key press event and sends it to the window which currently has the keyboard focus
| display | The Display to send the event to. |
| keycode | The keycode of the key to be pressed. |
Definition at line 43 of file KeyboardEvent.cpp.


1.8.13