Skip to content

Commit

Permalink
code refine
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngst0m committed Jan 14, 2024
1 parent b284660 commit c775980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/wsi/wsi_sdl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ WSI::~WSI()

bool WSI::update()
{
auto* window = static_cast<SDL_Window*>(m_window);

SDL_Event windowEvent;
while(SDL_PollEvent(&windowEvent))
{
Expand Down Expand Up @@ -147,6 +145,7 @@ bool WSI::update()
case SDL_KEYUP:
{
state = KeyState::Released;
EventManager::GetInstance().pushEvent(KeyboardEvent{gkey, state});
}
break;
}
Expand Down

0 comments on commit c775980

Please sign in to comment.