{"id":55,"date":"2024-06-09T10:36:09","date_gmt":"2024-06-09T10:36:09","guid":{"rendered":"https:\/\/blogs.scummvm.org\/markhor\/?p=55"},"modified":"2024-06-16T11:04:32","modified_gmt":"2024-06-16T11:04:32","slug":"agos-engine-week-2","status":"publish","type":"post","link":"https:\/\/blogs.scummvm.org\/markhor\/2024\/06\/09\/agos-engine-week-2\/","title":{"rendered":"AGOS Engine &#8211; Week 2"},"content":{"rendered":"<p><strong>DISCLAIMER:\u00a0<\/strong>I had my exams for a week, hence I could not make sufficient progress<\/p>\n<p>After my previous commit my mentors had made me realize that I did not take into account the game controller players. My keymaps would not identify controller key binds. Below review shows that I had made these two major errors, rest were small like naming conventions etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-57\" src=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-09-152425.png\" alt=\"\" width=\"781\" height=\"253\" srcset=\"https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-09-152425.png 781w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-09-152425-300x97.png 300w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-09-152425-768x249.png 768w, https:\/\/blogs.scummvm.org\/markhor\/wp-content\/uploads\/sites\/73\/2024\/06\/Screenshot-2024-06-09-152425-720x233.png 720w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>I was able to insert the yes\/no option easily into the keymap. But the issue arose on how could we check if any of the controller key binds have been pressed. First I tried to loop through the const HardwareInputTableEntry defaultJoystickButtons[] and add all button into the keyMap action but I was advised that it is not the right way as it would look too cluttered when keyMap is accessed by the user. As of Saturday I am still stuck at this and hopefully I will be able to come up with a solution by the end of the day as next week I have to focus on another engine.<\/p>\n<p>PR: <a href=\"https:\/\/github.com\/scummvm\/scummvm\/pull\/5821\" target=\"_blank\" rel=\"noopener\">Github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DISCLAIMER:\u00a0I had my exams for a week, hence I could not make sufficient progress After my previous commit my mentors had made me realize that I did not take into account the game controller players. My keymaps would not identify controller key binds. Below review shows that I had made these two major errors, rest [&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-55","post","type-post","status-publish","format-standard","hentry","category-keymap"],"_links":{"self":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/55","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=55"}],"version-history":[{"count":4,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/posts\/55\/revisions\/60"}],"wp:attachment":[{"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.scummvm.org\/markhor\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}