1keyboard_clearstate(3) Svgalib User Manual keyboard_clearstate(3)
2
3
4
6 keyboard_clearstate - reset the state of all keys when in raw keyboard
7 mode
8
10 #include <vgakeyboard.h>
11
12 void keyboard_clearstate(void);
13
14
16 When in raw keyboard mode, svgalib receives press and release events
17 from the kernel and keeps track which keys are currently pressed. Call‐
18 ing keyboard_clearstate() sets this information to all keys released.
19 You can use this for cleanup at certain places in your program. In
20 addition svgalib resets the states of all keys when a VC switch occurs
21 because it does not know the current state of keys when it regains con‐
22 trol of the console.
23
24
26 svgalib(7), vgagl(7), libvga.config(5), keytest(6), eventtest(6), key‐
27 board_seteventhandler(3), keyboard_init(3), keyboard_init_return_fd(3),
28 keyboard_close(3), keyboard_setdefaulteventhandler(3), keyboard_get‐
29 state(3), keyboard_keypressed(3), keyboard_translatekeys(3), key‐
30 board_update(3), keyboard_waitforupdate(3), vga_waitevent(3)
31
32
34 This manual page was edited by Michael Weller <eowmob@exp-math.uni-
35 essen.de>. The exact source of the referenced function as well as of
36 the original documentation is unknown.
37
38 It is very likely that both are at least to some extent are due to Harm
39 Hanemaayer <H.Hanemaayer@inter.nl.net>.
40
41 Occasionally this might be wrong. I hereby asked to be excused by the
42 original author and will happily accept any additions or corrections to
43 this first version of the svgalib manual.
44
45
46
47Svgalib (>= 1.2.11) 29 July 1997 keyboard_clearstate(3)