- ApplicationController *ac = [NSApplication sharedApplication].delegate;
- JoystickController *jc = ac.jsController;
- [jc setFrontWindowOnly: ![jc frontWindowOnly]];
+ ApplicationController *ac = NSApplication.sharedApplication.delegate;
+ NJInputController *jc = ac.jsController;
+ jc.frontWindowOnly = !jc.frontWindowOnly;