Stepping back from code for a moment ... What do I want to do? 1) upon initial start up of app, I want to wait for a gamepadconnected Event. 2) Once I get this Event, I immediately change a SKSpriteNode's color and then start looking for: a) button presses on the gamepad and b) a gamepaddisconnected Event 3) So while I am executing code based on 2(a), I receive 2(b) .. I immediately change the above color to something different, followed by looking for another gamepadconnected Event. Back-and-forth Back-and-forth.
Topic:
Programming Languages
SubTopic:
Swift
Tags: