mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:43:45 +02:00
Initial device control implementation. Works with touches and NUMERIC keycodes.
This commit is contained in:
@@ -366,16 +366,16 @@ module.exports = function(options) {
|
||||
services.input.tapAsync(message.x, message.y)
|
||||
})
|
||||
.on(wire.TypeMessage, function(channel, message) {
|
||||
services.input.typeAsync(message.text)
|
||||
services.monkey.typeAsync(message.text)
|
||||
})
|
||||
.on(wire.KeyDownMessage, function(channel, message) {
|
||||
services.input.keyDownAsync(message.key)
|
||||
services.monkey.keyDownAsync(message.key)
|
||||
})
|
||||
.on(wire.KeyUpMessage, function(channel, message) {
|
||||
services.input.keyUpAsync(message.key)
|
||||
services.monkey.keyUpAsync(message.key)
|
||||
})
|
||||
.on(wire.KeyPressMessage, function(channel, message) {
|
||||
services.input.pressAsync(message.key)
|
||||
services.monkey.pressAsync(message.key)
|
||||
})
|
||||
.on(wire.ShellCommandMessage, function(channel, message) {
|
||||
log.info('Running shell command "%s"', message.command.join(' '))
|
||||
|
||||
Reference in New Issue
Block a user