summaryrefslogtreecommitdiff
path: root/android-commands.h
diff options
context:
space:
mode:
authorGreg Bellows <greg.bellows@linaro.org>2014-11-17 11:48:35 -0600
committerGreg Bellows <greg.bellows@linaro.org>2014-11-19 17:08:01 -0600
commit1da0d9d8181a5a8449f27780e2ae7f41c7b0982d (patch)
treee20a58b8debd8bbcbb072a61f0632a1546340fd1 /android-commands.h
parent67fc9dd4a130b0ae5605fa4c4f5e711da34f0cfe (diff)
android-console: Add event codes command
Add the Android emulator console "event codes" command and associated help messages. The "codes" command is used to display a list of available event codes for a specified type. Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Diffstat (limited to 'android-commands.h')
-rw-r--r--android-commands.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/android-commands.h b/android-commands.h
index b1bebedf8..25a9a3a01 100644
--- a/android-commands.h
+++ b/android-commands.h
@@ -79,6 +79,13 @@ static mon_cmd_t android_event_cmds[] = {
.help = "list all <type> aliases",
.mhandler.cmd = android_console_event_types,
},
+ {
+ .name = "codes",
+ .args_type = "arg:s?",
+ .params = "",
+ .help = "list all <code> aliases for a given <type>",
+ .mhandler.cmd = android_console_event_codes,
+ },
{ NULL, NULL, },
};