- ApplicationController *ac = [NSApplication sharedApplication].delegate;
- JoystickController *jc = ac.jsController;
- [jc setFrontWindowOnly: ![jc frontWindowOnly]];
- printf("Front window only: %d\n", [jc frontWindowOnly]);
+ ApplicationController *ac = NSApplication.sharedApplication.delegate;
+ NJInputController *jc = ac.jsController;
+ jc.frontWindowOnly = !jc.frontWindowOnly;