{"id":65,"date":"2024-06-23T13:40:23","date_gmt":"2024-06-23T13:40:23","guid":{"rendered":"https:\/\/blogs.scummvm.org\/markhor\/?p=65"},"modified":"2024-06-23T13:40:23","modified_gmt":"2024-06-23T13:40:23","slug":"saga-engine-hugo-engine-week-4","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/markhor\/2024\/06\/23\/saga-engine-hugo-engine-week-4\/","title":{"rendered":"SAGA Engine &amp; HUGO Engine &#8211; Week 4"},"content":{"rendered":"<h1>SAGA Engine<\/h1>\n<p>I had wasted a day finding where the key inputs were being processed, the best option should&#8217;ve been asking the mentors. Once I did that they were able to guide me to how it was being processed and what what I had to change, essentially the ascii were changed to customEngine actions.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-67\" src=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-171745.png\" alt=\"\" width=\"846\" height=\"478\" srcset=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-171745.png 846w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-171745-300x170.png 300w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-171745-768x434.png 768w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-171745-720x407.png 720w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/p>\n<p>Also I had changed the keyboard handler which used to process ascii to accommodate customActions too<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-68\" src=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-174109.png\" alt=\"\" width=\"781\" height=\"53\" srcset=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-174109.png 781w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-174109-300x20.png 300w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-174109-768x52.png 768w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-23-174109-720x49.png 720w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><br \/>\nRest was just changing the code so instead of ascii the actions were executed on customAction, also it took an this took most of the week because there were a lot of keys to be taken account of and the key registration was relatively convoluted in terms of defining a new new keymaps. I am still confused if escape key requires a keymap Action as in some places only escape is required and other only return. Would I have to make a keymap Action for both separately or an action that accommodates both, my mentor had advised &#8220;My thoughts are that not all the inputs necessarily need keymaps on those, but at least one is likely an improvement&#8221;. Thus I have decided that I will keep the action for escape.<br \/>\nYou can find the PR <a href=\"https:\/\/github.com\/scummvm\/scummvm\/pull\/5863\/files\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<h1>HUGO Engine<\/h1>\n<p>Hugo is comparatively simple, the keymap inputs were easy to identify and there were few keys. I planned to do a simple engine so I can target at least two engine per week<br \/>\nYou can find the PR <a href=\"https:\/\/github.com\/scummvm\/scummvm\/pull\/5865\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<h1><\/h1>\n","protected":false},"excerpt":{"rendered":"<p>SAGA Engine I had wasted a day finding where the key inputs were being processed, the best option should&#8217;ve been asking the mentors. Once I did that they were able to guide me to how it was being processed and what what I had to change, essentially the ascii were changed to customEngine actions. Also [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-keymap"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":2,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/65\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}