WIP Backend System Redesign Step 1
- Created 1 Context for Backend Management and Sharing - Made every class that used a static Backend require the Context or specific Backend - Bring Back 3ds support
This commit is contained in:
@@ -34,7 +34,7 @@ SOFTWARE.
|
||||
namespace PD {
|
||||
class GfxGL2 : public GfxDriver {
|
||||
public:
|
||||
GfxGL2() : GfxDriver("OpenGL2") {}
|
||||
GfxGL2(PDDriverData data = nullptr) : GfxDriver("OpenGL2") {}
|
||||
~GfxGL2() = default;
|
||||
|
||||
PD_SHARED(GfxGL2);
|
||||
|
||||
@@ -30,7 +30,7 @@ SOFTWARE.
|
||||
namespace PD {
|
||||
class HidGLFW : public HidDriver {
|
||||
public:
|
||||
HidGLFW(GLFWwindow* win);
|
||||
HidGLFW(PDDriverData data);
|
||||
~HidGLFW() = default;
|
||||
|
||||
PD_SHARED(HidGLFW);
|
||||
@@ -44,7 +44,7 @@ class HidGLFW : public HidDriver {
|
||||
pTimings.erase(k);
|
||||
return false;
|
||||
}
|
||||
return (PD::OS::GetTime() - pTimings[k]) > 50;
|
||||
return 0; //(PD::OS::GetTime() - pTimings[k]) > 50;
|
||||
}
|
||||
if (!IsEvent(Event_Held, k)) {
|
||||
if (pTimings.count(k)) {
|
||||
@@ -53,7 +53,7 @@ class HidGLFW : public HidDriver {
|
||||
}
|
||||
}
|
||||
if (IsEvent(Event_Held, k)) {
|
||||
pTimings[k] = PD::OS::GetTime();
|
||||
pTimings[k] = 0; // PD::OS::GetTime();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user