source:
mainline/uspace/lib/c/include/io/pos_event.h@
9bfa8c8
| Last change on this file since 9bfa8c8 was d7f7a4a, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 627 bytes | |
| Rev | Line | |
|---|---|---|
| [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 | |
| 19 | typedef 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 */ | |
| 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.
