Swap controller mappings
Posted: Wed Dec 09, 2020 6:37 pm
Hi all,
I have the source code opened in Xcode and I'm trying to figure out the best place to make a change to how the gamepads are mapped. What I want is for the gamepad mapped to player 2 to suddenly be mapped to player 1, based on the value of a flag I have added to Settings that's flipped on a timer. I've got most of the changes working, but it's confusing trying to find where the input polling is happening and how to intercept the player 2 commands and reroute them to player 1.
I feel like I'm on the right track with some of the functions in mac-os.mm. Can anybody better at Objective-C and C++ than me point me in the right direction?
Thanks for your help
I have the source code opened in Xcode and I'm trying to figure out the best place to make a change to how the gamepads are mapped. What I want is for the gamepad mapped to player 2 to suddenly be mapped to player 1, based on the value of a flag I have added to Settings that's flipped on a timer. I've got most of the changes working, but it's confusing trying to find where the input polling is happening and how to intercept the player 2 commands and reroute them to player 1.
I feel like I'm on the right track with some of the functions in mac-os.mm. Can anybody better at Objective-C and C++ than me point me in the right direction?
Thanks for your help