Joystickinput settargets2

@thomasgubler Can you give some recommendations how to best integrate this branch? Is this the better solution compared to joystickinput_settargets?