Hello.
Thank you for the help, but what do you mean exactly, how do I do that?
I should also note that I tried running the script from inside the NVGt android app, and I got the same result.
I tested it with this script by the way, which was written inside the touch interface reference:
#include"touch.nvgt"
#include"speech.nvgt"
touch_gesture_manager touch;
void main() {
show_window("touch screen test");
//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);
dictionary@d = {{"double_tap1f", KEY_X}, {"double_tap2f", KEY_Z}};
// Demonstrate registering an interface for only a portion of the screen.
touch.add_touch_interface(touch_keyboard_interface(touch, d, 0.5, 1.0, 0.5, 1.0));
while (!key_pressed(KEY_ESCAPE) and !key_pressed(KEY_AC_BACK)) {
wait(5);
touch.monitor();
if (key_pressed(KEY_LEFT)) speak("left");
if (key_pressed(KEY_RIGHT)) speak("right");
if (key_pressed(KEY_DOWN)) speak("down");
if (key_pressed(KEY_UP)) speak("up");
if (key_pressed(KEY_TAB)) {
speak("tripple tap");
if (key_down(KEY_LSHIFT) or key_down(KEY_RSHIFT)) speak("you are holding down shift", false);
}
if (key_pressed(KEY_SPACE)) speak("double tap 2 fingers");
if (key_pressed(KEY_ESCAPE)) exit();
if (key_pressed(KEY_Q)) speak("swipe right 2 fingers");
if (key_pressed(KEY_RETURN)) speak("you just double tapped the screen!", false);
if (key_pressed(KEY_X)) speak("You just double tapped another part of the screen!");
if (key_pressed(KEY_Z)) speak("You just double tapped with 2 fingers on another part of the screen!");
}
}
Aren't scripts inside references flawless and with no mistakes?
I don't understand. I mean, shouldn't it work as intended?
In any case, could you show me how to identify the touch interface thing in a small example of a few lines, pretty please?
Thank you so much, really.