mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-02 00:21:38 +00:00
Uncap FPS, disable VSync, check for mouse input per frame and improve nanoTime precision.
This commit is contained in:
1 parent
eccd785110
commit
c712b07fc3
5 files changed
+27
-19
No files matched your search
@@ -80,6 +80,10 @@ public:
|
||||
float GetLookX(float sensitivity) const;
|
||||
float GetLookY(float sensitivity) const;
|
||||
|
||||
int GetRawDeltaX() const { return m_mouseDeltaAccumX; }
|
||||
int GetRawDeltaY() const { return m_mouseDeltaAccumY; }
|
||||
void ConsumeMouseDelta() { m_mouseDeltaAccumX = 0; m_mouseDeltaAccumY = 0; }
|
||||
|
||||
private:
|
||||
bool m_keyDown[MAX_KEYS];
|
||||
bool m_keyDownPrev[MAX_KEYS];
|
||||
|
||||
Reference in new issue
Block a user