{"action":"created","issue":{"url":"https://api.github.com/repos/atarijookie/ce-atari/issues/129","repository_url":"https://api.github.com/repos/atarijookie/ce-atari","labels_url":"https://api.github.com/repos/atarijookie/ce-atari/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/atarijookie/ce-atari/issues/129/comments","events_url":"https://api.github.com/repos/atarijookie/ce-atari/issues/129/events","html_url":"https://github.com/atarijookie/ce-atari/issues/129","id":198156661,"number":129,"title":"IKBD isn't initialised correctly by default","user":{"login":"mikrosk","id":3062260,"avatar_url":"https://avatars.githubusercontent.com/u/3062260?v=3","gravatar_id":"","url":"https://api.github.com/users/mikrosk","html_url":"https://github.com/mikrosk","followers_url":"https://api.github.com/users/mikrosk/followers","following_url":"https://api.github.com/users/mikrosk/following{/other_user}","gists_url":"https://api.github.com/users/mikrosk/gists{/gist_id}","starred_url":"https://api.github.com/users/mikrosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikrosk/subscriptions","organizations_url":"https://api.github.com/users/mikrosk/orgs","repos_url":"https://api.github.com/users/mikrosk/repos","events_url":"https://api.github.com/users/mikrosk/events{/privacy}","received_events_url":"https://api.github.com/users/mikrosk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-30T14:57:52Z","updated_at":"2016-12-31T10:10:27Z","closed_at":null,"body":"While trying to solve the strange problem in #73 (fire button doesn't work when implemented true ST keycode handling) I finally found it -- IKBD isn't set in good initial state -- joy1 ignores fire events while joy0 seems to be set in some kind of mouse mode (i.e. when I move joy0, I see mouse cursor moving). If I initialise the IKBD with:\r\n\r\n```\r\nwhile (!(*((volatile uint8_t*)0xfffffc00) & 0x02));\r\n*((volatile uint8_t*)0xfffffc02) = 0x14;\r\n```\r\n\r\ni.e. setting joysticks in event reporting mode, my code started miraculously working. Event reporting mode should be set by default (i.e. games have no need to set it, therefore do not work) so I'm wondering where to look for the bug? I don't see any access to IKBD registers except `test_ikbd`."},"comment":{"url":"https://api.github.com/repos/atarijookie/ce-atari/issues/comments/269858529","html_url":"https://github.com/atarijookie/ce-atari/issues/129#issuecomment-269858529","issue_url":"https://api.github.com/repos/atarijookie/ce-atari/issues/129","id":269858529,"user":{"login":"mikrosk","id":3062260,"avatar_url":"https://avatars.githubusercontent.com/u/3062260?v=3","gravatar_id":"","url":"https://api.github.com/users/mikrosk","html_url":"https://github.com/mikrosk","followers_url":"https://api.github.com/users/mikrosk/followers","following_url":"https://api.github.com/users/mikrosk/following{/other_user}","gists_url":"https://api.github.com/users/mikrosk/gists{/gist_id}","starred_url":"https://api.github.com/users/mikrosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikrosk/subscriptions","organizations_url":"https://api.github.com/users/mikrosk/orgs","repos_url":"https://api.github.com/users/mikrosk/repos","events_url":"https://api.github.com/users/mikrosk/events{/privacy}","received_events_url":"https://api.github.com/users/mikrosk/received_events","type":"User","site_admin":false},"created_at":"2016-12-31T10:10:27Z","updated_at":"2016-12-31T10:10:27Z","body":"Also, another bug (?): I don't understand how the condition\r\n\r\n`ceIkbdMode != CE_IKBDMODE_SOLO`\r\n\r\ncan return false during the first (sometimes even second) boot but then all the further restarts (resets) returns true. This leads to another bug and that is that we don't send \"0xF0\" as an OK but see above, I don't think we should send it at all, it's a real mystery to me why the IKBD doesn't answer with 0xF0 by itself."}}
{"actor":{"display_login":"mikrosk"}}