Remove an incorrect static.
The CKey constructor fetches the current keyboard state, so declaring it static will never give the correct result.
This commit is contained in:
parent
f26fbe9aba
commit
88a74faa71
1 changed files with 1 additions and 1 deletions
|
@ -791,7 +791,7 @@ void play_controller::process_keyup_event(const SDL_Event& event)
|
|||
|
||||
}
|
||||
} else if (event.key.keysym.sym == SDLK_TAB) {
|
||||
static CKey keys;
|
||||
CKey keys;
|
||||
if (!keys[SDLK_TAB]) {
|
||||
whiteboard_manager_->set_invert_behavior(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue