Skip to content

Commit

Permalink
improve keystroke and fps huds (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
GameParrot authored Jan 1, 2025
1 parent 832f1e4 commit e77c62b
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 238 deletions.
4 changes: 4 additions & 0 deletions src/core_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ void CorePatches::hideMousePointer() {
currentGameWindowHandle.callbacks->setCursorLocked(true);
}

bool CorePatches::isMouseLocked() {
return currentGameWindowHandle.mouseLocked;
}

void CorePatches::setFullscreen(void* t, bool fullscreen) {
currentGameWindowHandle.callbacks->setFullscreen(fullscreen);
}
Expand Down
2 changes: 2 additions & 0 deletions src/core_patches.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class CorePatches {

static void hideMousePointer();

static bool isMouseLocked();

static void setFullscreen(void* t, bool fullscreen);

static void setGameWindow(std::shared_ptr<GameWindow> gameWindow);
Expand Down
Loading

0 comments on commit e77c62b

Please sign in to comment.