diff options
Diffstat (limited to 'Kod/bilbana/yc4/display/key.m')
| -rw-r--r-- | Kod/bilbana/yc4/display/key.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/key.m b/Kod/bilbana/yc4/display/key.m new file mode 100644 index 0000000..0187755 --- /dev/null +++ b/Kod/bilbana/yc4/display/key.m @@ -0,0 +1,7 @@ +function pkg = 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 |
