mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-05 15:35:01 -04:00
Initial Meter Panel work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user