• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Commit MetaInfo

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

Log Message

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

Change Summary

Incremental Difference

--- 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_);