https://github.com/akiomik/leap-scala
A thin scala wrapper library for leap motion
https://github.com/akiomik/leap-scala
Last synced: 2 months ago
JSON representation
A thin scala wrapper library for leap motion
- Host: GitHub
- URL: https://github.com/akiomik/leap-scala
- Owner: akiomik
- License: mit
- Created: 2013-08-26T13:27:46.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-28T16:14:33.000Z (almost 12 years ago)
- Last Synced: 2025-02-07T16:48:35.696Z (4 months ago)
- Language: Scala
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
leap-scala
==========A thin scala wrapper library for leap motion
## Installation
1. Download the leap motion SDK.
2. Move `LeapDeveloperKit/LeapSDK/lib/LeapJava.jar` to `leap-scala/lib/`.
3. Publish this library to local repository.```sh
sbt publish-local
```
4. Add library dependency to your sbt project.```scala
libraryDependencies ++= Seq(
"com.github.akiomik" %% "leap-scala" % "0.1.0"
)
```5. Add following line to your scala code.
```scala
import com.github.akiomik.leap_scala.Imports._
```
## Sample
```scala
import com.github.akiomik.leap_scala.Imports._object SampleApp {
def main(args: Array[String]) {
val controller = new Controller()
val listener = new SampleListener()controller.addListener(listener)
readLine("Press Enter to quit...\n")
controller.removeListener(listener)
}
}class SampleListener extends Listener {
// do something ...
}
```
## Licence
The MIT License. See `LICENSE` file.