From d8ca2771fb528b6570c96d8e6bc24d94cc5006ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandra=20Ke=C3=9Fler?= Date: Fri, 4 Aug 2017 16:36:25 +0200 Subject: [PATCH] add back key --- .../main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index 4514df9fbf..f9d30b5205 100644 --- a/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/app/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -397,6 +397,7 @@ public class RuffyScripter { public static byte CHECK = (byte) 0x0C; public static byte UP = (byte) 0x30; public static byte DOWN = (byte) 0xC0; + public static byte BACK = (byte) 0x33; } public void pressUpKey() { @@ -423,6 +424,11 @@ public class RuffyScripter { log.debug("Releasing menu key"); } + public void pressBackKey() { + log.debug("Pressing back key"); + pressKey(Key.BACK,2000); + log.debug("Releasing back key"); + } // TODO v2, rework these two methods: waitForMenuUpdate shoud only be used by commands // then anything longer than a few seconds is an error; // only ensureConnected() uses the method with the timeout parameter; inline that code,