Prechádzať zdrojové kódy

Merge pull request #110491 from bruvzg/emb_j_init_msg

[macOS] Remove old embedded window joystick init code.
Thaddeus Crews 3 týždňov pred
rodič
commit
0ef1c07838

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

@@ -150,16 +150,6 @@ void EmbeddedProcessMacOS::_try_embed_process() {
 		queue_redraw();
 		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();
 	} else {
 		// Another unknown error.