How to emulate xbox controller on mac9/19/2023 In the end, you'll have a list with all names and the corresponding XBOX buttons. You must take note of their names to be able to map them properly later. Do this for all your buttons and all your axis. This output tells me that this button is mapped with the name BTN_THUMB. Then I pressed the button corresponding to where the B button is on the XBOX controller, and the output was this:Įvent: time 1380985018.460841, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90002Įvent: time 1380985018.460841, type 1 (EV_KEY), code 289 ( BTN_THUMB), value 1 In this case, I pressed the button corresponding to where the A button is on the XBOX controller, and this button is mapped as BTN_THUMB2. To do so, while using evtest with the event associated to your controller (for example, # evtest /dev/input/event11), each time you press a button you'll receive a terminal output like this:Įvent: time 1380985017.964843, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90003Įvent: time 1380985017.964843, type 1 (EV_KEY), code 290 ( BTN_THUMB2), value 1 If you have any other controller, you must map it. If you have a PS3 controller, you can skip this section and go stragth to section 5.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |