Initial Meter Panel work

This commit is contained in:
Charles J. Cliffe
2016-07-03 20:59:49 -04:00
parent cf90a829b0
commit a87c58c4a8
7 changed files with 164 additions and 1 deletions
+4
View File
@@ -135,6 +135,10 @@ float MouseTracker::getLastMouseY() {
return lastMouseY;
}
CubicVR::vec2 MouseTracker::getGLXY() {
return CubicVR::vec2((getMouseX()-0.5)*2.0, (getMouseY()-0.5)*2.0);
}
float MouseTracker::getMouseX() {
return mouseX;
}
+2
View File
@@ -1,6 +1,7 @@
#pragma once
#include "wx/window.h"
#include "cubic_math.h"
class MouseTracker {
public:
@@ -24,6 +25,7 @@ public:
float getDeltaMouseY();
float getLastMouseX();
float getLastMouseY();
CubicVR::vec2 getGLXY();
float getMouseX();
float getMouseY();