Skip to content

Commit

Permalink
upRight, upLeft, downRight, downLeft
Browse files Browse the repository at this point in the history
  • Loading branch information
fbertone committed May 16, 2017
1 parent 390c98b commit 892f8f4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 1.5.0 (2017-05-16)

### Features

* **client:** (*camera*) moveDownLeft
* **client:** (*camera*) moveDownRight
* **client:** (*camera*) moveUpLeft
* **client:** (*camera*) moveUpRight

# 1.4.0 (2017-04-27)

### Features
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[npm-image]: https://img.shields.io/badge/npm-v1.4.0-blue.svg
[npm-url]: https://npmjs.org/package/lib32100
[![npm][npm-image]][npm-url]
[![npm](https://img.shields.io/npm/v/lib32100.svg)](https://npmjs.org/package/lib32100)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


Expand Down
24 changes: 24 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,26 @@ const client = function client (opts = {}, udpSocket) {
currentCamSession.mySeq++
}

const moveDownLeft = function moveDownLeft () {
camClient.moveDownLeft(socket, currentCamSession.address, currentCamSession.mySeq, camCredentials)
currentCamSession.mySeq++
}

const moveDownRight = function moveDownRight () {
camClient.moveDownRight(socket, currentCamSession.address, currentCamSession.mySeq, camCredentials)
currentCamSession.mySeq++
}

const moveUpLeft = function moveUpLeft () {
camClient.moveUpLeft(socket, currentCamSession.address, currentCamSession.mySeq, camCredentials)
currentCamSession.mySeq++
}

const moveUpRight = function moveUpRight () {
camClient.moveUpRight(socket, currentCamSession.address, currentCamSession.mySeq, camCredentials)
currentCamSession.mySeq++
}

const on = function on (ev, cb) {
emitter.addListener(ev, cb)
}
Expand Down Expand Up @@ -411,6 +431,10 @@ const client = function client (opts = {}, udpSocket) {
stepRight,
stepUp,
stopMove,
moveDownRight,
moveUpRight,
moveUpLeft,
moveDownLeft,
on
}
}
Expand Down

0 comments on commit 892f8f4

Please sign in to comment.