mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +08:00
Follow aircraft allow to zoom in/out
* renamed sniffer * ignore keystrokes if NO aircraft is followed * allow to zoom in/out my multiplying the distance
This commit is contained in:
committed by
Mat Sutcliffe
parent
0d29471144
commit
62f5ddab99
@@ -167,7 +167,7 @@ namespace XSwiftBus
|
||||
static int orbitOwnAircraftFunc(XPLMCameraPosition_t *cameraPosition, int isLosingControl, void *refcon);
|
||||
static int orbitPlaneFunc(XPLMCameraPosition_t *cameraPosition, int isLosingControl, void *refcon);
|
||||
static int drawCallback(XPLMDrawingPhase phase, int isBefore, void *refcon);
|
||||
static int spaceKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon);
|
||||
static int followAircraftKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon);
|
||||
|
||||
//! Remote aircraft
|
||||
struct Plane
|
||||
@@ -236,6 +236,7 @@ namespace XSwiftBus
|
||||
bool m_isSpacePressed = false;
|
||||
int m_lastMouseX = -1;
|
||||
int m_lastMouseY = -1;
|
||||
double m_followAircraftDistanceMultiplier = 1.0;
|
||||
DeltaCameraPosition m_deltaCameraPosition;
|
||||
|
||||
bool m_emitSimFrame = true;
|
||||
|
||||
Reference in New Issue
Block a user