|
@@ -283,7 +283,7 @@ void OS_Windows::_touch_event(bool p_pressed, float p_x, float p_y, int idx) {
|
|
|
event->set_position(Vector2(p_x, p_y));
|
|
|
|
|
|
if (main_loop) {
|
|
|
- input->accumulate_input_event(event);
|
|
|
+ input->parse_input_event(event);
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -303,7 +303,7 @@ void OS_Windows::_drag_event(float p_x, float p_y, int idx) {
|
|
|
event->set_relative(Vector2(p_x, p_y) - curr->get());
|
|
|
|
|
|
if (main_loop)
|
|
|
- input->accumulate_input_event(event);
|
|
|
+ input->parse_input_event(event);
|
|
|
|
|
|
curr->get() = Vector2(p_x, p_y);
|
|
|
};
|
|
@@ -487,7 +487,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
}
|
|
|
|
|
|
if (window_has_focus && main_loop && mm->get_relative() != Vector2())
|
|
|
- input->accumulate_input_event(mm);
|
|
|
+ input->parse_input_event(mm);
|
|
|
}
|
|
|
delete[] lpb;
|
|
|
} break;
|
|
@@ -575,7 +575,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
old_x = mm->get_position().x;
|
|
|
old_y = mm->get_position().y;
|
|
|
if (window_has_focus && main_loop)
|
|
|
- input->accumulate_input_event(mm);
|
|
|
+ input->parse_input_event(mm);
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
@@ -719,7 +719,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
old_x = mm->get_position().x;
|
|
|
old_y = mm->get_position().y;
|
|
|
if (window_has_focus && main_loop)
|
|
|
- input->accumulate_input_event(mm);
|
|
|
+ input->parse_input_event(mm);
|
|
|
return 0;
|
|
|
} break;
|
|
|
case WM_MOUSEMOVE: {
|
|
@@ -821,7 +821,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
old_x = mm->get_position().x;
|
|
|
old_y = mm->get_position().y;
|
|
|
if (window_has_focus && main_loop)
|
|
|
- input->accumulate_input_event(mm);
|
|
|
+ input->parse_input_event(mm);
|
|
|
|
|
|
} break;
|
|
|
case WM_LBUTTONDOWN:
|
|
@@ -984,14 +984,14 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
mb->set_global_position(mb->get_position());
|
|
|
|
|
|
if (main_loop) {
|
|
|
- input->accumulate_input_event(mb);
|
|
|
+ input->parse_input_event(mb);
|
|
|
if (mb->is_pressed() && mb->get_button_index() > 3 && mb->get_button_index() < 8) {
|
|
|
//send release for mouse wheel
|
|
|
Ref<InputEventMouseButton> mbd = mb->duplicate();
|
|
|
last_button_state &= ~(1 << (mbd->get_button_index() - 1));
|
|
|
mbd->set_button_mask(last_button_state);
|
|
|
mbd->set_pressed(false);
|
|
|
- input->accumulate_input_event(mbd);
|
|
|
+ input->parse_input_event(mbd);
|
|
|
}
|
|
|
}
|
|
|
} break;
|
|
@@ -1222,7 +1222,7 @@ void OS_Windows::process_key_events() {
|
|
|
if (k->get_unicode() < 32)
|
|
|
k->set_unicode(0);
|
|
|
|
|
|
- input->accumulate_input_event(k);
|
|
|
+ input->parse_input_event(k);
|
|
|
}
|
|
|
|
|
|
//do nothing
|
|
@@ -1261,7 +1261,7 @@ void OS_Windows::process_key_events() {
|
|
|
|
|
|
k->set_echo((ke.uMsg == WM_KEYDOWN && (ke.lParam & (1 << 30))));
|
|
|
|
|
|
- input->accumulate_input_event(k);
|
|
|
+ input->parse_input_event(k);
|
|
|
|
|
|
} break;
|
|
|
}
|