summaryrefslogtreecommitdiff
path: root/common/preview.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/preview.h')
-rw-r--r--common/preview.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/common/preview.h b/common/preview.h
index 13d6f27..e60a2be 100644
--- a/common/preview.h
+++ b/common/preview.h
@@ -12,6 +12,12 @@ public:
virtual ~PiecePreview();
void OnDraw();
+ void OnLeftButtonDown(int x, int y, bool Control, bool Shift);
+ void OnLeftButtonUp(int x, int y, bool Control, bool Shift);
+ void OnLeftButtonDoubleClick(int x, int y, bool Control, bool Shift);
+ void OnRightButtonDown(int x, int y, bool Control, bool Shift);
+ void OnRightButtonUp(int x, int y, bool Control, bool Shift);
+ void OnMouseMove(int x, int y, bool Control, bool Shift);
PieceInfo* GetCurrentPiece() const
{ return m_PieceInfo; }
@@ -19,6 +25,17 @@ public:
protected:
PieceInfo* m_PieceInfo;
+
+ // Mouse tracking.
+ int m_Tracking;
+ int m_DownX;
+ int m_DownY;
+
+ // Current camera settings.
+ float m_Distance;
+ float m_RotateX;
+ float m_RotateZ;
+ bool m_AutoZoom;
};
#endif // _PREVIEW_H_