diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-30 20:03:40 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-10-30 20:03:40 +0100 |
| commit | 7bbb7150fbc8951155ed3e512b0ccafbdd628da7 (patch) | |
| tree | a9d0e54ccb12fd960939298ca6b15383b7461596 /Kod/bilbana/yc4/display/define_touch_key.m | |
| parent | a7c9a75611820dc37f891d2f95fdb248cf428a1d (diff) | |
| parent | 1827a94e46494acd5577f2e834e56d6ba8f44413 (diff) | |
| download | tfyy51-7bbb7150fbc8951155ed3e512b0ccafbdd628da7.tar.gz | |
Merge branch 'display-functions'
Diffstat (limited to 'Kod/bilbana/yc4/display/define_touch_key.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/define_touch_key.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/define_touch_key.m b/Kod/bilbana/yc4/display/define_touch_key.m new file mode 100644 index 0000000..14ee5ee --- /dev/null +++ b/Kod/bilbana/yc4/display/define_touch_key.m @@ -0,0 +1,7 @@ +function pkg = define_touch_key(x1, y1, x2, y2, down_code, up_code, just, text) + arg_location = [get_bytes(x1), get_bytes(y1), get_bytes(x2), get_bytes(y2)]; + arg_text = double(strjoin({just; text}, '')); + arg_null = 0; + + pkg = get_package('AT', [arg_location, down_code, up_code, arg_text, arg_null]); +end |
