diff options
author | Greg Bellows <greg.bellows@linaro.org> | 2014-11-17 11:14:42 -0600 |
---|---|---|
committer | Greg Bellows <greg.bellows@linaro.org> | 2014-11-19 17:08:01 -0600 |
commit | cdf616c2f67e6b1a422e861009a72ef5bd27c4c0 (patch) | |
tree | ff68461b87fb0a0bff4537a5ea24ce67e1658147 /include | |
parent | 1da0d9d8181a5a8449f27780e2ae7f41c7b0982d (diff) |
android-console: Add GF event send function
Adds Android emulator console command for enqueuing a Goldfish/Ranchu event.
The function takes the event type and code (symbol or value) along with an
event value and adds it to the Goldfish event device work queue.
Signed-off-by: Greg Bellows <greg.bellows@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/input/goldfish_events.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/input/goldfish_events.h b/include/hw/input/goldfish_events.h index be426d599..bff8a7b3d 100644 --- a/include/hw/input/goldfish_events.h +++ b/include/hw/input/goldfish_events.h @@ -19,5 +19,6 @@ extern int gf_get_event_code_count(const char *typename); extern int gf_get_event_code_name(const char *typename, unsigned int code, char *buf); extern int gf_get_event_code_value(int typeval, char *codename); +extern int gf_event_send(int type, int code, int value); #endif |