Эх сурвалжийг харах

Renamed 'Fake' to 'Simulate'

rsredsq 10 жил өмнө
parent
commit
b4d8d34b3e

+ 2 - 2
Source/Atomic/Input/Input.cpp

@@ -2023,7 +2023,7 @@ void Input::BindButton(UIButton* touchButton, int button)
     touchButton->SetEmulationButton(button);
 }
 
-void Input::FakeButtonDown(int button)
+void Input::SimulateButtonDown(int button)
 {
     SDL_Event evt;
     evt.type = SDL_KEYDOWN;
@@ -2031,7 +2031,7 @@ void Input::FakeButtonDown(int button)
     HandleSDLEvent(&evt);
 }
 
-void Input::FakeButtonUp(int button)
+void Input::SimulateButtonUp(int button)
 {
     SDL_Event evt;
     evt.type = SDL_KEYUP;

+ 2 - 2
Source/Atomic/Input/Input.h

@@ -295,8 +295,8 @@ public:
     /// Binds UIButton element to the given button
     void BindButton(UIButton* touchButton, int button);
 
-    void FakeButtonDown(int button);
-    void FakeButtonUp(int button);
+    void SimulateButtonDown(int button);
+    void SimulateButtonUp(int button);
 
 private:
     /// Initialize when screen mode initially set.

+ 2 - 2
Source/Atomic/UI/UIButton.cpp

@@ -76,11 +76,11 @@ bool UIButton::OnEvent(const tb::TBWidgetEvent &ev)
     }
     if (ev.type == EVENT_TYPE_POINTER_DOWN && emulationButton_ >= 0)
     {
-        GetSubsystem<Input>()->FakeButtonDown(emulationButton_);
+        GetSubsystem<Input>()->SimulateButtonDown(emulationButton_);
     }
     if (ev.type == EVENT_TYPE_POINTER_UP && emulationButton_ >= 0)
     {
-        GetSubsystem<Input>()->FakeButtonUp(emulationButton_);
+        GetSubsystem<Input>()->SimulateButtonUp(emulationButton_);
     }
     return UIWidget::OnEvent(ev);
 }