GCController.Notifications.observeDidConnect(new VoidBlock1<GCController>() { @Override public void invoke(GCController controller) { System.out.println("Connected game controller: " + controller);
addController(controller, true); // add it to our list of controllers }});GCController.Notifications.observeDidDisconnect(new VoidBlock1<GCController>() { @Override public void invoke(GCController controller) { removeController(controller); // remove it from our list of controllers
System.out.println("Disconnected game controller: " + controller); }});
// And start looking for any wireless controllers.GCController.startWirelessControllerDiscovery(new Runnable() { @Override public void run() { System.out.println("Finished finding controllers"); }});<framework>CoreGraphics</framework>
<framework>SpriteKit</framework>
<frameworks>
<framework>UIKit</framework>
<framework>OpenGLES</framework>
<framework>QuartzCore</framework>
<framework>CoreGraphics</framework>
<framework>OpenAL</framework>
<framework>AudioToolbox</framework>
<framework>AVFoundation</framework>
<framework>SpriteKit</framework>
<framework>ExternalAccessory</framework>
<framework>CoreBluetooth</framework>
<framework>GameController</framework>
</frameworks>
--
You received this message because you are subscribed to the Google Groups "RoboVM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robovm+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.