{"action":"created","issue":{"url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/4","repository_url":"https://api.github.com/repos/zlittell/MSF-XINPUT","labels_url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/4/comments","events_url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/4/events","html_url":"https://github.com/zlittell/MSF-XINPUT/issues/4","id":148501699,"number":4,"title":"stickUpdate byte order is reversed","user":{"login":"Jerware","id":6698787,"avatar_url":"https://avatars.githubusercontent.com/u/6698787?v=3","gravatar_id":"","url":"https://api.github.com/users/Jerware","html_url":"https://github.com/Jerware","followers_url":"https://api.github.com/users/Jerware/followers","following_url":"https://api.github.com/users/Jerware/following{/other_user}","gists_url":"https://api.github.com/users/Jerware/gists{/gist_id}","starred_url":"https://api.github.com/users/Jerware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jerware/subscriptions","organizations_url":"https://api.github.com/users/Jerware/orgs","repos_url":"https://api.github.com/users/Jerware/repos","events_url":"https://api.github.com/users/Jerware/events{/privacy}","received_events_url":"https://api.github.com/users/Jerware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-14T22:31:10Z","updated_at":"2016-04-22T18:16:45Z","closed_at":null,"body":"Unless I'm mistaken (highly probable!) the stickUpdate function inside xinput.cpp has the high and low bytes reversed. It should be:\r\n\r\n```\r\nvoid XINPUT::stickUpdate(uint8_t analogStick, int16_t stickXDirValue, int16_t stickYDirValue)\r\n{\r\n\tif (analogStick == STICK_LEFT)\r\n\t{\r\n\t\t//Left Stick X Axis\r\n\t\tTXData[LEFT_STICK_X_PACKET_LSB] = highByte(stickXDirValue);\r\n\t\tTXData[LEFT_STICK_X_PACKET_MSB] = lowByte(stickXDirValue);\r\n\t\t//Left Stick Y Axis\r\n\t\tTXData[LEFT_STICK_Y_PACKET_LSB] = highByte(stickYDirValue);\r\n\t\tTXData[LEFT_STICK_Y_PACKET_MSB] = lowByte(stickYDirValue);\r\n\t}\r\n\telse if(analogStick == STICK_RIGHT)\r\n\t{\r\n\t\t//Right Stick X Axis\r\n\t\tTXData[RIGHT_STICK_X_PACKET_LSB] = highByte(stickXDirValue);\r\n\t\tTXData[RIGHT_STICK_X_PACKET_MSB] = lowByte(stickXDirValue);\r\n\t\t//Right Stick Y Axis\r\n\t\tTXData[RIGHT_STICK_Y_PACKET_LSB] = highByte(stickYDirValue);\r\n\t\tTXData[RIGHT_STICK_Y_PACKET_MSB] = lowByte(stickYDirValue);\r\n\t}\r\n\telse{/*invalid parameter*/}\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/comments/213539120","html_url":"https://github.com/zlittell/MSF-XINPUT/issues/4#issuecomment-213539120","issue_url":"https://api.github.com/repos/zlittell/MSF-XINPUT/issues/4","id":213539120,"user":{"login":"zlittell","id":3053809,"avatar_url":"https://avatars.githubusercontent.com/u/3053809?v=3","gravatar_id":"","url":"https://api.github.com/users/zlittell","html_url":"https://github.com/zlittell","followers_url":"https://api.github.com/users/zlittell/followers","following_url":"https://api.github.com/users/zlittell/following{/other_user}","gists_url":"https://api.github.com/users/zlittell/gists{/gist_id}","starred_url":"https://api.github.com/users/zlittell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zlittell/subscriptions","organizations_url":"https://api.github.com/users/zlittell/orgs","repos_url":"https://api.github.com/users/zlittell/repos","events_url":"https://api.github.com/users/zlittell/events{/privacy}","received_events_url":"https://api.github.com/users/zlittell/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T18:16:45Z","updated_at":"2016-04-22T18:16:45Z","body":"@Jerware I will be pushing an update tonight that should negate the right sticks y axis automatically and close this issue out.  Just a heads up."}}