The invention relates to a method of using a touch module as a game controller, which comprises a
touchpad of a notebook computer and a touch screen of a
mobile phone. The touch module can be switched between a mouse mode and a game mode, and in the game mode, the touch module can detect two types of movement of a finger in one position: A, point touch; and B, sliding a
short distance in a specific direction to issue commands of a directional key or a functional key to a
system. In the mode of A, e.g. point touch, the touch module is divided into 2-6 zones, and when detecting that the finger is in the mode of point touch and immediately leave the position along the vertical direction without displacement, the zone in which the finger is located can be single-clicked or double-clicked to judge the functional key selected by the user; in the mode of B, e.g. sliding a
short distance in a specific direction, when detecting that the finger is in the sliding mode, the touch module compares a starting position of a first time (X1 and Y1) and a measured position of a second time (X2 and Y2) and calculates the sliding direction to judge the directional key, the functional key, the variable increase or decrease or the game controller selected by the user; and the touch module can issue more than two types of commands in one position through matching of the two
modes. Therefore, when the invention is used, the
touchpad of the notebook computer and the touch screen of the
mobile phone can have the function of the game controller.