You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
[macOS] Remove old embedded window joystick init code.
(cherry picked from commit 77dd83efbf)
This commit is contained in:
committed by
Rémi Verschelde
parent
183f6cdd63
commit
eb7c869f84
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user