1TICKIT_TERM_EMIT_KEY(3) Library Functions Manual TICKIT_TERM_EMIT_KEY(3)
2
3
4
6 tickit_term_emit_key, tickit_term_emit_mouse - emit a fake key or mouse
7 event
8
10 #include <tickit.h>
11
12 void tickit_term_emit_key(TickitTerm *tt, TickitKeyEventInfo *info);
13 void tickit_term_emit_mouse(TickitTerm *tt, TickitMouseEventInfo *info);
14
15 Link with -ltickit.
16
18 tickit_term_emit_key() invokes the event handler chain on the terminal
19 instance, as if a key event had been received from the controlling ter‐
20 minal.tickit_term_emit_mouse() invokes the event handler chain on the
21 terminal instance, as if a mouse event had been received from the con‐
22 trolling terminal.
23
24 In each case, the event handler chain runs with the usual semantics;
25 each installed handler with the appropriate bit set in its event type
26 mask will be invoked until one returns a true value. Any remaining han‐
27 dlers after this will not get to see the event.
28
30 tickit_term_new(3), tickit_term_bind_event(3), tickit_term(7),
31 tickit(7)
32
33
34
35 TICKIT_TERM_EMIT_KEY(3)