소스 검색

[macOS] Remove old embedded window joystick init code.

Pāvels Nadtočajevs 1 개월 전
부모
커밋
77dd83efbf
1개의 변경된 파일0개의 추가작업 그리고 10개의 파일을 삭제
  1. 0 10
      platform/macos/editor/embedded_process_macos.mm

+ 0 - 10
platform/macos/editor/embedded_process_macos.mm

@@ -150,16 +150,6 @@ void EmbeddedProcessMacOS::_try_embed_process() {
 		queue_redraw();
 		queue_redraw();
 		emit_signal(SNAME("embedding_completed"));
 		emit_signal(SNAME("embedding_completed"));
 
 
-		// Send initial joystick state.
-		{
-			Input *input = Input::get_singleton();
-			TypedArray<int> joy_pads = input->get_connected_joypads();
-			for (const Variant &idx : joy_pads) {
-				String name = input->get_joy_name(idx);
-				script_debugger->send_message("embed:joy_add", { idx, name });
-			}
-		}
-
 		layer_host->grab_focus();
 		layer_host->grab_focus();
 	} else {
 	} else {
 		// Another unknown error.
 		// Another unknown error.