Started to implement keycodes service.

This commit is contained in:
Gunther Brunner
2014-05-27 18:35:50 +09:00
parent daa7677218
commit 6526724695
9 changed files with 446 additions and 2 deletions

View File

@@ -81,6 +81,11 @@ module.exports = function ControlServiceFactory(
this.keyDown = keySender('input.keyDown')
this.keyUp = keySender('input.keyUp')
this.keyPress = keySender('input.keyPress')
this.rawKeyPress = function (fixedKey) {
return sendOneWay('input.keyPress', {
key: fixedKey
})
}
this.home = keySender('input.keyPress', 3)
this.menu = keySender('input.keyPress', 93)