BSB Developer Docs
Loading...
Searching...
No Matches
input_common_f64.h
1
4#pragma once
5
6#include "input_common.h"
7
8#include <stdint.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
17typedef struct {
18 InputDevice device;
19 union {
20 struct {
21 InputButton button;
22 InputAction action;
23 } button_event;
24 InputSwitchPosition switch_position;
25 int16_t encoder_delta;
26 };
28
29#ifdef __cplusplus
30}
31#endif
Common declarations for the Input services.
Definition input_common_f64.h:17
int16_t encoder_delta
Speed and direction of encoder rotation.
Definition input_common_f64.h:25
InputSwitchPosition switch_position
New mode switch position.
Definition input_common_f64.h:24
InputButton button
Identifier of the button interacted with.
Definition input_common_f64.h:21
InputDevice device
Identifier of the device that emitted the event.
Definition input_common_f64.h:18
InputAction action
Button action that occurred.
Definition input_common_f64.h:22