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

@@ -1,12 +1,6 @@
module.exports = function InputCtrl($scope, KeycodesAndroid) {
$scope.press = function (key) {
console.log(key)
var mapped = KeycodesAndroid[key]
if (mapped) {
$scope.control.rawKeyPress(mapped)
} else {
console.error(key + ' is not mapped')
}
$scope.control.keyPress(key)
}
}