-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathfltk.h
More file actions
executable file
·73 lines (63 loc) · 1.35 KB
/
Copy pathfltk.h
File metadata and controls
executable file
·73 lines (63 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef _FLTK_H_
#define _FLTK_H_
#include "gui/gui.h"
#include "emu.h"
#ifndef Fl_Output_H
#define Fl_Output void
#endif
#ifndef PIXELS_PER_LOGICAL_X
#define PIXELS_PER_LOGICAL_X 1
#endif
#ifndef PIXELS_PER_LOGICAL_Y
#define PIXELS_PER_LOGICAL_Y 1
#endif
#if !defined ZOOM_X || !defined ZOOM_Y
#define ZOOM_X 1
#define ZOOM_Y 1
#endif
#define IMAGE_X LCD_WIDTH * PIXELS_PER_LOGICAL_X
#define IMAGE_Y LCD_HEIGHT * PIXELS_PER_LOGICAL_Y
#define SCREEN_X (IMAGE_X * ZOOM_X)
#define SCREEN_Y (IMAGE_Y * ZOOM_Y)
#define SCREEN_RESIZE (IMAGE_X != SCREEN_X || IMAGE_Y != SCREEN_Y)
//#define KEYBOARD_LAYOUT_QWERTZ 1
struct Gui {
u16 xstart, xend, ystart, yend;
u16 x, y;
s8 dir;
u32 buttons;
int throttle;
int rudder;
int elevator;
int aileron;
int aux2;
int aux3;
int aux4;
int aux5;
int aux6;
int aux7;
int rud_dr;
int ail_dr;
int ele_dr;
int dr; /* for emu_devo6 */
int gear;
int mix;
int fmod;
int hold;
int trn;
u8 powerdown;
u8 mouse;
u16 mousex, mousey;
Fl_Output *raw[INP_LAST-1];
Fl_Output *final[12];
u32 last_redraw;
u8 image[IMAGE_X*IMAGE_Y*3];
u8 pixel_tracking[IMAGE_X][IMAGE_Y];
#if SCREEN_RESIZE
u8 scaled_img[SCREEN_X*SCREEN_Y*3];
#endif
u8 init;
} gui;
extern struct Gui gui;
void set_stick_positions();
#endif