Yuri :godot: on Nostr: I needed to fetch key bindings for my project inside of the editor, but InputMap is ...
I needed to fetch key bindings for my project inside of the editor, but InputMap is not populated by project settings (to avoid breaking the editor).
I could call `InputMap.load_from_project_settings()`, but that would be really ill-advised. Thankfully, manual parsing is straightforward:
#godotengine
Published at
2024-12-03 16:05:20Event JSON
{
"id": "1d23c4155075c8cf756fb721666b60b27e8dec3d7248af0dd5a279d0988d2f2a",
"pubkey": "6a06c9ff8bf4021a207b4f57196bf459d6952cbc5ee8b5096fdf7a48749cb36b",
"created_at": 1733241920,
"kind": 1,
"tags": [
[
"t",
"godotengine"
],
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/589/726/063/512/414/original/e677fa72ded649f4.png",
"m image/png",
"dim 1171x961",
"blurhash U04xoM~W9G9Z%2%1RkNdxCn$bFX8%Mn%WAR+"
],
[
"proxy",
"https://mastodon.gamedev.place/users/yurisizov/statuses/113589742525204659",
"activitypub"
]
],
"content": "I needed to fetch key bindings for my project inside of the editor, but InputMap is not populated by project settings (to avoid breaking the editor).\n\nI could call `InputMap.load_from_project_settings()`, but that would be really ill-advised. Thankfully, manual parsing is straightforward:\n\n#godotengine\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/589/726/063/512/414/original/e677fa72ded649f4.png",
"sig": "6194681ac7bd8fcdabd0f9638446acfec56c2ba76a85247c114a49a322e2ba47d850345e28cfe78bdca7281272a29444e33a976b04d063c6619163682619a063"
}