mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 03:53:28 +02:00
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
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')
|
|
}
|
|
}
|
|
}
|