Added back Advanced Input.

This commit is contained in:
Gunther Brunner
2014-05-27 19:25:27 +09:00
parent 129a1d1f45
commit b4db9fad03
4 changed files with 33 additions and 32 deletions

View File

@@ -64,12 +64,19 @@ module.exports = function ControlServiceFactory(
function keySender(type, fixedKey) {
return function(key) {
var mapped = fixedKey || keyCodes[key]
if (mapped) {
if (typeof key === 'string') {
sendOneWay(type, {
key: mapped
key: key
})
}
else {
var mapped = fixedKey || keyCodes[key]
if (mapped) {
sendOneWay(type, {
key: mapped
})
}
}
}
}