USB2USB_Converter
USB2USB_Converter copied to clipboard
Joysticks support
U2U is a great invention, and I like it very much. But I don’t know what to do when I try to convert some joystick keys to keyboard keys. As we all known that USB_Host_Shield_2.0 support Xbox and Ps joysticks. So, could you share the way to build a new firmware with joysticks support.
Simple ways would be to write Parser for the joystick to converter input from joystick into keyboard code and store it in report_keyboard_t
.
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.h#L10 https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.cpp#L7-L23
Many thanks, I'll try.
Get Outlook for iOShttps://aka.ms/o0ukef
From: hasu@tmk [email protected] Sent: Saturday, August 24, 2019 10:05:19 AM To: tmk/USB2USB_Converter [email protected] Cc: shuxin [email protected]; Author [email protected] Subject: Re: [tmk/USB2USB_Converter] Joysticks support (#2)
Simple ways would be to write Parser for the joystick to converter input from joystick into keyboard code and store it in report_keyboard_t.
https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.h#L10https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftmk%2Ftmk_keyboard%2Fblob%2Fmaster%2Ftmk_core%2Fprotocol%2Fusb_hid%2Fparser.h%23L10&data=02%7C01%7C%7Ccc69d9e8e8a24cf53b4c08d72837847b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637022091212212620&sdata=uWHd0Ul64x81AHLhHygc31Suk4bwrmAkM6G4PfxZB%2Bw%3D&reserved=0 https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/protocol/usb_hid/parser.cpp#L7-L23https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftmk%2Ftmk_keyboard%2Fblob%2Fmaster%2Ftmk_core%2Fprotocol%2Fusb_hid%2Fparser.cpp%23L7-L23&data=02%7C01%7C%7Ccc69d9e8e8a24cf53b4c08d72837847b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637022091212222625&sdata=eurTsom9mdd6tjd1eATtiZfcAKNp9wuLrK5D9OHLLPM%3D&reserved=0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftmk%2FUSB2USB_Converter%2Fissues%2F2%3Femail_source%3Dnotifications%26email_token%3DAAFTLJKB7F4HORJXCAWROQDQGCJN7A5CNFSM4IPBHR62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5BVUPI%23issuecomment-524507709&data=02%7C01%7C%7Ccc69d9e8e8a24cf53b4c08d72837847b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637022091212232642&sdata=V1nu6W%2BOqI%2FMt5iKiRfpHuRtx9eLrkuCbqsUYdx%2FsQM%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAFTLJKUA5UN2Y4FTK2WAKTQGCJN7ANCNFSM4IPBHR6Q&data=02%7C01%7C%7Ccc69d9e8e8a24cf53b4c08d72837847b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637022091212242653&sdata=DZo0DnKSeMTnYqMAH2HTiZZN89%2FrrY%2FahxHzOUrafc8%3D&reserved=0.