Very cool, if I wanted to use this for say a PS4 controller or some other controller it would be similar steps just nested in an if else tree, yes?