A method for controlling mobile applications by using a positioning system. In the method the allowed directions of movement are limited to predetermined directions. The method is configured to select one of the predetermined directions based on a measured direction and then a measured speed of movement is adapted to the selected direction and the mobile application is controlled accordingly.