well that was largely irrelavent wasn't it

This commit is contained in:
Ben Kyd
2022-10-25 18:21:28 +01:00
parent 3117b087c2
commit 670a2b3ca5
2 changed files with 21 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ void Inferno::uiPreset()
int Inferno::run()
{
mWin->setKeyCallback(&handleKbd);
mWin->setMouseCallback(&handlePtr);
while (true) {
if (!mWin->newFrame()) { break; }
@@ -110,4 +112,14 @@ int Inferno::run()
return 0;
}
void handleKbd(int key, int scan, int action, int mod)
{
}
void handlePtr(double x, double y)
{
}
}

View File

@@ -10,7 +10,6 @@ class GLFWwindow;
class RasterizeRenderer;
class Scene;
class Inferno
{
public:
@@ -20,13 +19,21 @@ public:
void uiPreset();
int run();
private:
double mLastMouseX, mLastMouseY;
friend void handleKbd(int key, int scan, int action, int mod);
friend void handlePtr(double x, double y);
private:
RasterizeRenderer* mRasterRenderer;
Scene* mScene;
private:
Window* mWin;
};
void handleKbd(int key, int scan, int action, int mod);
void handlePtr(double x, double y);
}