Jelajahi Sumber

Do not reset input state on subsequent screen mode changes, to allow key-ups / mouse-ups to happen naturally. Closes #1012.

Lasse Öörni 10 tahun lalu
induk
melakukan
c8eb116df9
1 mengubah file dengan 0 tambahan dan 3 penghapusan
  1. 0 3
      Source/Urho3D/Input/Input.cpp

+ 0 - 3
Source/Urho3D/Input/Input.cpp

@@ -1988,11 +1988,8 @@ void Input::HandleSDLEvent(void* sdlEvent)
 
 void Input::HandleScreenMode(StringHash eventType, VariantMap& eventData)
 {
-    // Reset input state on subsequent initializations
     if (!initialized_)
         Initialize();
-    else
-        ResetState();
 
     // Re-enable cursor clipping, and re-center the cursor (if needed) to the new screen size, so that there is no erroneous
     // mouse move event. Also get new window ID if it changed