I'm not much into gesture recognition, but a simple approach would be dividing the screen into sectors. A simple state machine could keep track of the gestures and raise an event in case of recognition. I think with some nice graphics we could quickly build up such an app with Qt Creator.