-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathplugin.h
More file actions
29 lines (25 loc) · 694 Bytes
/
Copy pathplugin.h
File metadata and controls
29 lines (25 loc) · 694 Bytes
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
/**
* ToggleMouseLook - X-Plane 11 Plugin
*
* Adds two new commands that mimic the mouse look behaviour of Prepar3D.
*
* Copyright 2019 Torben Könke.
*/
#ifndef _PLUGIN_H_
#define _PLUGIN_H_
#include "../Util/util.h"
#include "../XP/XPLMDisplay.h"
#include "../XP/XPLMGraphics.h"
#include "../XP/XPLMProcessing.h"
int toggle_cb(XPLMCommandRef cmd, XPLMCommandPhase phase, void *data);
int hold_cb(XPLMCommandRef cmd, XPLMCommandPhase phase, void *data);
int draw_cb(XPLMDrawingPhase phase, int before, void *ref);
#ifdef IBM
int hook_wnd_proc();
int unhook_wnd_proc();
#elif APL
void mouse_event(CGEventType type);
int tap_events();
int untap_events();
#endif
#endif /* _PLUGIN_H_ */