[swift-users] Waiting for mouse input in a while loop (OS X)

Ergin Bilgin erginbil at gmail.com
Wed Mar 23 11:35:21 CDT 2016


I have a very simple while loop and I want to wait for a mouse click(can be
a different input, not important) between every step.  What I want to
achieve is something like this:

while (i < 50){
    i += 1
    waitForMouseClick() //Wait here for user input.}

I also use Sprite Kit if you can think a solution related to it.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160323/89affde4/attachment.html>

More information about the swift-users mailing list