From a00e141872a529105a46a64fc58b1f58de1cdba3 Mon Sep 17 00:00:00 2001 From: Sam Tupy Date: Wed, 9 Oct 2024 22:01:56 -0500 Subject: [PATCH] Fix rather unfortunate typo One person was spelling gesture correctly, another wasn't. It was completely missed due to screen readers, and now we must rerun the CI one more time because otherwise the documentation and the real class won't be in sync. --- .../touch_gesture_manager/!touch_gesture_manager.nvgt | 4 ++-- .../touch_gesture_manager/Methods/is_available.nvgt | 2 +- .../!touch_keyboard_interface.md | 2 +- release/include/touch.nvgt | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/!touch_gesture_manager.nvgt b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/!touch_gesture_manager.nvgt index b942ae3e..20e19e83 100644 --- a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/!touch_gesture_manager.nvgt +++ b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/!touch_gesture_manager.nvgt @@ -10,10 +10,10 @@ // Example: #include"touch.nvgt" #include"speech.nvgt" -touch_jesture_manager touch; +touch_gesture_manager touch; void main() { show_window("touch screen test"); - //attach multiple keys to a single jesture. + //attach multiple keys to a single gesture. int[] t = {KEY_TAB, KEY_LSHIFT}; touch_keyboard_interface testsim(touch, {{"swipe_left1f", KEY_LEFT}, {"swipe_right1f", KEY_RIGHT}, {"swipe_up1f", KEY_UP}, {"swipe_down1f", KEY_DOWN}, {"double_tap1f", KEY_RETURN}, {"tripple_tap1f", t}, {"swipe_left2f", KEY_ESCAPE}, {"swipe_right2f", KEY_Q}, {"double_tap2f", KEY_SPACE}}); touch.add_touch_interface(testsim); diff --git a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/Methods/is_available.nvgt b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/Methods/is_available.nvgt index afb8cf59..7289cc49 100644 --- a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/Methods/is_available.nvgt +++ b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_gesture_manager/Methods/is_available.nvgt @@ -8,7 +8,7 @@ */ // Example: -touch_jesture_manager touch; +touch_gesture_manager touch; void main() { wait(1000); // Give the user some time to touch the screen to make sure it appears. if (!touch.is_available()) alert("warning", "This system does not appear to support touch screen devices"); diff --git a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_keyboard_interface/!touch_keyboard_interface.md b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_keyboard_interface/!touch_keyboard_interface.md index 11768672..d46993b0 100644 --- a/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_keyboard_interface/!touch_keyboard_interface.md +++ b/doc/src/references/include/touch gesture management (touch.nvgt)/Classes/touch_keyboard_interface/!touch_keyboard_interface.md @@ -1,7 +1,7 @@ # touch_keyboard_interface Convert gesture events to simulated keyboard input. -`touch_keyboard_interface(touch_jesture_manager@parent, dictionary@map, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED);` +`touch_keyboard_interface(touch_gesture_manager@parent, dictionary@map, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED);` ## Arguments: * touch_gesture_manager@ parent: A handle to the manager you intend to add this interface to, parameter subject for removal in future. diff --git a/release/include/touch.nvgt b/release/include/touch.nvgt index 6aa3adcb..ea86ee06 100644 --- a/release/include/touch.nvgt +++ b/release/include/touch.nvgt @@ -18,10 +18,10 @@ enum swipe_touch_directions { funcdef void tap_func(touch_screen_finger@finger); const float TOUCH_UNCOORDINATED = -10.0f; class touch_interface { - touch_jesture_manager@parent; + touch_gesture_manager@parent; float minx, maxx, miny, maxy; bool coordinated = false; - touch_interface(touch_jesture_manager@parent, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED) { + touch_interface(touch_gesture_manager@parent, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED) { @this.parent = parent; this.minx = minx; this.maxx = maxx; @@ -52,7 +52,7 @@ class touch_interface { } class touch_keyboard_interface: touch_interface { dictionary keymap; - touch_keyboard_interface(touch_jesture_manager@parent, dictionary@map, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED) { + touch_keyboard_interface(touch_gesture_manager@parent, dictionary@map, float minx = TOUCH_UNCOORDINATED, float maxx = TOUCH_UNCOORDINATED, float miny = TOUCH_UNCOORDINATED, float maxy = TOUCH_UNCOORDINATED) { super(parent, minx, maxx, miny, maxy); this.keymap = map; } @@ -114,7 +114,7 @@ class touch_keyboard_interface: touch_interface { } } } -class touch_jesture_manager { +class touch_gesture_manager { tap_func@last_tap_func; bool no_touch = true; timer input_timer, tap_timer; @@ -125,7 +125,7 @@ class touch_jesture_manager { touch_interface@[] interfaces; touch_screen_finger@last_tapped_finger; timer updatetimer; - touch_jesture_manager() { + touch_gesture_manager() { } bool is_available() { uint64[]@ dev = get_touch_devices();