source: mainline/uspace/lib/c/include/io/kbd_event.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 708 bytes
Line 
1/*
2 * SPDX-FileCopyrightText: 2012 Jiri Svoboda
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
13#ifndef _LIBC_IO_KBD_EVENT_H_
14#define _LIBC_IO_KBD_EVENT_H_
15
16#include <adt/list.h>
17#include <inttypes.h>
18#include <io/keycode.h>
19
20typedef enum {
21 KEY_PRESS,
22 KEY_RELEASE
23} kbd_event_type_t;
24
25/** Console event structure. */
26typedef struct {
27 /** List handle */
28 link_t link;
29
30 /** Press or release event. */
31 kbd_event_type_t type;
32
33 /** Keycode of the key that was pressed or released. */
34 keycode_t key;
35
36 /** Bitmask of modifiers held. */
37 keymod_t mods;
38
39 /** The character that was generated or '\0' for none. */
40 char32_t c;
41} kbd_event_t;
42
43#endif
44
45/** @}
46 */
Note: See TracBrowser for help on using the repository browser.