Skip to content

Commit

Permalink
Use more std::array
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Feb 19, 2024
1 parent 564de41 commit 0e6991c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imgui-SFML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ struct WindowContext {

bool windowHasFocus;
bool mouseMoved{false};
bool mousePressed[3] = {false};
std::array<bool, 3> mousePressed{};
ImGuiMouseCursor lastCursor{ImGuiMouseCursor_COUNT};

bool touchDown[3] = {false};
std::array<bool, 3> touchDown{};
sf::Vector2i touchPos;

unsigned int joystickId{getConnectedJoystickId()};
Expand Down

0 comments on commit 0e6991c

Please sign in to comment.