Created
March 30, 2013 09:38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.phyous.leap | |
import java.io.IOException | |
import com.leapmotion.leap._ | |
object App { | |
def main(args: Array[String]) { | |
val listener = new SampleListener | |
val controller = new Controller | |
controller.addListener(listener) | |
println("Press Enter to quit...") | |
try { | |
System.in.read | |
} | |
catch { | |
case e: IOException => { | |
e.printStackTrace | |
} | |
} | |
controller.removeListener(listener) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment