{"author_link":"\/users\/dock-frankenstein","author_name":"Dock Frankenstein","author_uid":"dock-frankenstein","comments":[],"epoch":1664302050,"event":"LD51","format":"md","ldjam_node_id":300038,"likes":5,"metadata":{"p_key":"166676","p_author":"Dock Frankenstein","p_authorkey":"1121145","p_urlkey":"393012","p_title":"Fixing my Input System for Ludum Dare Day 2","p_cat":"LDJam ","p_event":"LD51","p_time":"1664302050","p_likes":"5","p_comments":"0","p_status":"WAYBACK","us_key":"1121145","us_name":"Franciszek Pyr\u0107","us_username":"franciszek-pyrc","event_start":"1664496000","event_key":"114","event_name":"Ludum Dare 51"},"node":{"_collation":{"body_sanitizer":"TextUtils::SanitizeHTML via existing importer","event":"LD51","removed_author":false},"_superparent":296586,"_trust":8,"author":121145,"body":"# Introduction\nI have finally fixed \/ commented all of the bugs. Now it's time to finally start re-adding features.\n\n![Screenshot 2022-09-27 200327.png](\/\/\/raw\/939\/d1\/z\/4ee31.png)\n\nAs I said previously: editor is my main priority and **luckily I've managed to re-add most of the essential features**. I can add and remove items, edit some very basic values and save. I had to jump into the mess that is the content tree and trim out almost all of the code. And finally, here we are.\n\n# Deleting items\n**Everything was easy to reimplement, except for deleting**. Currently there are 2 ways of deleting items: by pressing the minus in the content tree (easy) or **clicking the delete button in the inspector (hard)**. Because the inspector doesn't know what and where the item is located I had to make a separate virtual method to handle that for every item separately. **So in the end I have this lovely peace of linq code**.\n\n![Screenshot 2022-09-27 194636.png](\/\/\/raw\/939\/d1\/z\/4ee2c.png)\n\n# Inspector\nI unfortunately don't have enough time to add the fancy [inspector concept from my previous post](https:\/\/ldjam.com\/events\/ludum-dare\/51\/$296630\/fixing-my-input-system-for-ludum-dare-day-1), so here's the ugly version...\n\n![Screenshot 2022-09-27 195140.png](\/\/\/raw\/939\/d1\/z\/4ee2e.png)\n\nNormally the keys should be separated into individual lists and there should be a popups instead of the ugly text fields. As you can hear, **this isn't that simple or fast to add**. So unfortunately **I will have to write the paths manually for this jam :\/**\n\nThe same is with axes: normally there should be a button to select a binding, but for now you will have to **copy and pase the guids manually**.\n\n![Screenshot 2022-09-27 195611.png](\/\/\/raw\/939\/d1\/z\/4ee30.png)\n\n# Broken things\nSadly, not everything is working. This includes:\n- window preferences\n- editing groups in the inspector\n- duplicating items\n- error icons next to items\n\nThey however aren't ascrutial as the other features, so I'm not gonna add them now. Worst case scenario I can just **enter debug mode and edit the map in Unity's inspector or edit the file manually in notepad**.\n\n# Next features\nNext I'm gonna work on reading input **and hopefully adding gamepad support using xinput**. From what I read, xinput is fairly simple to get started with, so I have high hopes it's gonna go smoothly","comments":1,"comments-timestamp":"2022-09-29T04:26:49Z","created":"2022-09-27T16:17:55Z","files":[],"files-timestamp":0,"id":300038,"love":5,"love-timestamp":"2022-09-28T18:43:25Z","meta":[],"modified":"2022-09-29T04:26:49Z","name":"Fixing my Input System for Ludum Dare Day 2","node-timestamp":"2022-09-27T18:07:30Z","parent":296630,"parents":[1,5,9,296586,296630],"path":"\/events\/ludum-dare\/51\/estolec\/fixing-my-input-system-for-ludum-dare-day-2","published":"2022-09-27T18:07:30Z","scope":"public","slug":"fixing-my-input-system-for-ludum-dare-day-2","subsubtype":"","subtype":"","type":"post","version":924795},"node_metadata":{"n_key":"300038","n_urlkey":"393012","n_parent":"296630","n_path":"\/events\/ludum-dare\/51\/estolec\/fixing-my-input-system-for-ludum-dare-day-2","n_slug":"fixing-my-input-system-for-ludum","n_type":"post","n_subtype":"","n_subsubtype":"","n_author":"121145","n_created":"1664295475","n_modified":"1664425609","n_version":"924795","n_status":"WAYBACK"},"source_url":"https:\/\/ldjam.com\/events\/ludum-dare\/51\/estolec\/fixing-my-input-system-for-ludum-dare-day-2","text":"# Introduction\nI have finally fixed \/ commented all of the bugs. Now it's time to finally start re-adding features.\n\n![Screenshot 2022-09-27 200327.png](\/\/\/raw\/939\/d1\/z\/4ee31.png)\n\nAs I said previously: editor is my main priority and **luckily I've managed to re-add most of the essential features**. I can add and remove items, edit some very basic values and save. I had to jump into the mess that is the content tree and trim out almost all of the code. And finally, here we are.\n\n# Deleting items\n**Everything was easy to reimplement, except for deleting**. Currently there are 2 ways of deleting items: by pressing the minus in the content tree (easy) or **clicking the delete button in the inspector (hard)**. Because the inspector doesn't know what and where the item is located I had to make a separate virtual method to handle that for every item separately. **So in the end I have this lovely peace of linq code**.\n\n![Screenshot 2022-09-27 194636.png](\/\/\/raw\/939\/d1\/z\/4ee2c.png)\n\n# Inspector\nI unfortunately don't have enough time to add the fancy [inspector concept from my previous post](https:\/\/ldjam.com\/events\/ludum-dare\/51\/$296630\/fixing-my-input-system-for-ludum-dare-day-1), so here's the ugly version...\n\n![Screenshot 2022-09-27 195140.png](\/\/\/raw\/939\/d1\/z\/4ee2e.png)\n\nNormally the keys should be separated into individual lists and there should be a popups instead of the ugly text fields. As you can hear, **this isn't that simple or fast to add**. So unfortunately **I will have to write the paths manually for this jam :\/**\n\nThe same is with axes: normally there should be a button to select a binding, but for now you will have to **copy and pase the guids manually**.\n\n![Screenshot 2022-09-27 195611.png](\/\/\/raw\/939\/d1\/z\/4ee30.png)\n\n# Broken things\nSadly, not everything is working. This includes:\n- window preferences\n- editing groups in the inspector\n- duplicating items\n- error icons next to items\n\nThey however aren't ascrutial as the other features, so I'm not gonna add them now. Worst case scenario I can just **enter debug mode and edit the map in Unity's inspector or edit the file manually in notepad**.\n\n# Next features\nNext I'm gonna work on reading input **and hopefully adding gamepad support using xinput**. From what I read, xinput is fairly simple to get started with, so I have high hopes it's gonna go smoothly","title":"Fixing my Input System for Ludum Dare Day 2","wayback_source":[]}