nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
motion_event.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef _MOTION_EVENT_H_
8
#define _MOTION_EVENT_H_
9
10
#include <
app_event_manager.h
>
11
#include <
app_event_manager_profiler_tracer.h
>
12
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
27
struct
motion_event
{
29
struct
app_event_header
header
;
30
32
int16_t
dx
;
33
35
int16_t
dy
;
36
44
bool
active
;
45
};
46
47
APP_EVENT_TYPE_DECLARE
(
motion_event
);
48
49
#ifdef __cplusplus
50
}
51
#endif
52
56
57
#endif
/* _MOTION_EVENT_H_ */
app_event_manager.h
Application Event Manager header.
app_event_manager_profiler_tracer.h
Application Event Manager profiler tracer header.
APP_EVENT_TYPE_DECLARE
#define APP_EVENT_TYPE_DECLARE(ename)
Declare an event type.
Definition
app_event_manager.h:143
motion_event::active
bool active
Definition
motion_event.h:44
motion_event::dy
int16_t dy
Definition
motion_event.h:35
motion_event::dx
int16_t dx
Definition
motion_event.h:32
motion_event::header
struct app_event_header header
Definition
motion_event.h:29
motion_event
Motion event.
Definition
motion_event.h:27
applications
nrf_desktop
src
events
motion_event.h
Generated on
for nRF Connect SDK API by
1.17.0