|
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:
627 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * SPDX-FileCopyrightText: 2021 Jiri Svoboda
|
|---|
| 3 | * SPDX-FileCopyrightText: 2012 Petr Koupy
|
|---|
| 4 | *
|
|---|
| 5 | * SPDX-License-Identifier: BSD-3-Clause
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | /** @addtogroup libc
|
|---|
| 9 | * @{
|
|---|
| 10 | */
|
|---|
| 11 | /** @file
|
|---|
| 12 | */
|
|---|
| 13 |
|
|---|
| 14 | #ifndef _LIBC_IO_POS_EVENT_H_
|
|---|
| 15 | #define _LIBC_IO_POS_EVENT_H_
|
|---|
| 16 |
|
|---|
| 17 | #include <types/common.h>
|
|---|
| 18 |
|
|---|
| 19 | typedef enum {
|
|---|
| 20 | /** Position update */
|
|---|
| 21 | POS_UPDATE,
|
|---|
| 22 | /** Button press */
|
|---|
| 23 | POS_PRESS,
|
|---|
| 24 | /** Button release */
|
|---|
| 25 | POS_RELEASE,
|
|---|
| 26 | /** Double click */
|
|---|
| 27 | POS_DCLICK
|
|---|
| 28 | } pos_event_type_t;
|
|---|
| 29 |
|
|---|
| 30 | /** Positioning device event */
|
|---|
| 31 | typedef 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.