Merge pull request #10479 from iNavFlight/mmosca-fix-arming-flags-display
[inav.git] / src / main / io / osd_joystick.h
blob574b8e3b776b53051042dcd383e59414aefd08f6
1 #pragma once
3 #include "config/parameter_group.h"
5 #ifdef USE_RCDEVICE
6 #ifdef USE_LED_STRIP
8 typedef struct osdJoystickConfig_s {
9 bool osd_joystick_enabled;
10 uint8_t osd_joystick_down;
11 uint8_t osd_joystick_up;
12 uint8_t osd_joystick_left;
13 uint8_t osd_joystick_right;
14 uint8_t osd_joystick_enter;
15 } osdJoystickConfig_t;
17 PG_DECLARE(osdJoystickConfig_t, osdJoystickConfig);
19 bool osdJoystickEnabled(void);
21 // 5 key osd cable simulation
22 void osdJoystickSimulate5KeyButtonPress(uint8_t operation);
23 void osdJoystickSimulate5KeyButtonRelease(void);
25 #endif
26 #endif