• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision1e221bc1666cc3752286e2f7a8719c68677dac1d (tree)
Zeit2012-10-30 00:37:20
Autorangeart <angeart@git....>
Commiterangeart

Log Message

Inputの挙動がおかしかったのを修正

Ändern Zusammenfassung

Diff

--- a/client/ui/Input.cpp
+++ b/client/ui/Input.cpp
@@ -632,8 +632,9 @@ void Input::ProcessInput(InputManager* input)
632632 message_lines_.push_back(line_buffer);
633633 }
634634
635- if (active() && input->GetMouseX() >= x() && input->GetMouseX() <= x() + width() &&
636- input->GetMouseY() >= y() && input->GetMouseY() <= y() + height()) {
635+ if (active()) {
636+ if(input->GetMouseX() >= x() && input->GetMouseX() <= x() + width() &&
637+ input->GetMouseY() >= y() && input->GetMouseY() <= y() + height()){
637638 if ( !right_click_list_.visible() &&
638639 !( right_click_list_.visible() && right_click_list_.absolute_x()<= input->GetMouseX() && input->GetMouseX() <= right_click_list_.absolute_x()+ right_click_list_.absolute_width()
639640 && right_click_list_.absolute_y() <= input->GetMouseY() && input->GetMouseY() <= right_click_list_.absolute_y() + right_click_list_.absolute_height())) {
@@ -817,6 +818,7 @@ void Input::ProcessInput(InputManager* input)
817818 //rightmenu_show_ = true;
818819 }
819820 }
821+ }
820822
821823 // カーソル位置(文字単位)を取得
822824 cursor_byte_pos = GetKeyInputCursorPosition(input_handle_);