download screen-launcher program and run chmod 755 screen-launcher

Here are some example scripts to use the program. When run, it waits for the first screen tap, runs a command and quits. The script it calls should perform an action, such as opening a keyboard and when finished it should re-run the screen-launcher program. Pressing and holding anywhere on screen for longer than one second will quit without running the command.


run-my-game.sh
#!/bin/sh
screen-launcher -c "show-my-keyboard.sh &" &
command-to-run-my-game...
# do not put game in the background, no & after it
killall screen-launcher

show-my-keyboard.sh
#!/bin/sh
xkbd
screen-launcher -c "show-my-keyboard.sh &" &

download source code