From 0d761ebf3811ae20d74bbce8f4988c3a7ab8349d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 27 Oct 2019 14:26:09 +0100 Subject: Second wave --- Kod/bilbana/yc4/display/define_touch_switch.m | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Kod/bilbana/yc4/display/define_touch_switch.m (limited to 'Kod/bilbana/yc4/display/define_touch_switch.m') diff --git a/Kod/bilbana/yc4/display/define_touch_switch.m b/Kod/bilbana/yc4/display/define_touch_switch.m new file mode 100644 index 0000000..47d3cd9 --- /dev/null +++ b/Kod/bilbana/yc4/display/define_touch_switch.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('AK', [arg_location, down_code, up_code, arg_text, arg_null]); +end -- cgit v1.2.1 From f735459829046e9e2a9911d8cf31546a5bebefee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 12 Nov 2019 12:34:58 +0100 Subject: fix func name --- Kod/bilbana/yc4/display/define_touch_switch.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kod/bilbana/yc4/display/define_touch_switch.m') diff --git a/Kod/bilbana/yc4/display/define_touch_switch.m b/Kod/bilbana/yc4/display/define_touch_switch.m index 47d3cd9..4dfc764 100644 --- a/Kod/bilbana/yc4/display/define_touch_switch.m +++ b/Kod/bilbana/yc4/display/define_touch_switch.m @@ -1,4 +1,4 @@ -function pkg = define_touch_key(x1, y1, x2, y2, down_code, up_code, just, text) +function pkg = define_touch_switch(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; -- cgit v1.2.1