source: mainline/uspace/lib/c/include/io/pos_event.h@ 9bfa8c8

Last change on this file since 9bfa8c8 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: 627 bytes
RevLine 
[bc4bf97]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2021 Jiri Svoboda
3 * SPDX-FileCopyrightText: 2012 Petr Koupy
[bc4bf97]4 *
[d7f7a4a]5 * SPDX-License-Identifier: BSD-3-Clause
[bc4bf97]6 */
7
8/** @addtogroup libc
9 * @{
10 */
11/** @file
12 */
13
[4805495]14#ifndef _LIBC_IO_POS_EVENT_H_
15#define _LIBC_IO_POS_EVENT_H_
[bc4bf97]16
[cf13b17]17#include <types/common.h>
[bc4bf97]18
19typedef enum {
[8edec53]20 /** Position update */
[bc4bf97]21 POS_UPDATE,
[8edec53]22 /** Button press */
[bc4bf97]23 POS_PRESS,
[8edec53]24 /** Button release */
25 POS_RELEASE,
26 /** Double click */
27 POS_DCLICK
[bc4bf97]28} pos_event_type_t;
29
30/** Positioning device event */
31typedef struct {
32 sysarg_t pos_id;
33 pos_event_type_t type;
34 sysarg_t btn_num;
35 sysarg_t hpos;
36 sysarg_t vpos;
37} pos_event_t;
38
39#endif
40
41/** @}
42 */
Note: See TracBrowser for help on using the repository browser.