summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/display/define_touch_switch.m
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-14 09:59:31 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-14 10:05:49 +0100
commit14b2064d325f8065dad48421c16db9b4ac678cfe (patch)
treea336ca6548355d9cd4bc3448fae2eeccb25057be /Kod/bilbana/yc4/display/define_touch_switch.m
parent74f1d443644c8654d9fbc3bf48f5d3b87e48c199 (diff)
parent50ed829577446a0ae66395a1c20f47e79282d4cd (diff)
downloadtfyy51-14b2064d325f8065dad48421c16db9b4ac678cfe.tar.gz
Merge branch 'display-io' into car-function
Diffstat (limited to 'Kod/bilbana/yc4/display/define_touch_switch.m')
-rw-r--r--Kod/bilbana/yc4/display/define_touch_switch.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Kod/bilbana/yc4/display/define_touch_switch.m b/Kod/bilbana/yc4/display/define_touch_switch.m
index 47d3cd9..e45f512 100644
--- a/Kod/bilbana/yc4/display/define_touch_switch.m
+++ b/Kod/bilbana/yc4/display/define_touch_switch.m
@@ -1,7 +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;
+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;
- pkg = get_package('AK', [arg_location, down_code, up_code, arg_text, arg_null]);
+pkg = get_package('AK', [arg_location, down_code, up_code, arg_text, arg_null]);
end