mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Fix online interactions, UI, and inventory sync
This commit is contained in:
parent
7436420cd1
commit
fdc614902b
14 changed files with 525 additions and 143 deletions
|
|
@ -79,8 +79,8 @@ void CameraController::update(float deltaTime) {
|
|||
|
||||
auto& input = core::Input::getInstance();
|
||||
|
||||
// Don't process keyboard input when UI (e.g. chat box) has focus
|
||||
bool uiWantsKeyboard = ImGui::GetIO().WantCaptureKeyboard;
|
||||
// Don't process keyboard input when UI text input (e.g. chat box) has focus
|
||||
bool uiWantsKeyboard = ImGui::GetIO().WantTextInput;
|
||||
|
||||
// Determine current key states
|
||||
bool keyW = !uiWantsKeyboard && !sitting && input.isKeyPressed(SDL_SCANCODE_W);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue