1. Technical Field
The present disclosure relates to electronic devices, and particularly, to an electronic device and a method for providing tactile stimulation adapted for the electronic device.
2. Description of Related Art
Many electronic devices, such as mobile phones, tablet computers, and multimedia players, usually employ touch-sensitive screens as input interfaces. When a user plays a game installed in an electronic device having a touch-sensitive screen, he or she can select the virtual graphical icons displayed on the touch-sensitive screen to operate the game. However, the touch-sensitive screen do not provide very good tactile feedback to the user as a conventional keyboard does which has a travel distance for a keystroke when pressed and thus fails to improve the user experience when the user is operating the game.
Recently, a technology of enabling the touch-sensitive screen to provide tactile feedback is realized by delivering an electrosensory sensation in response to a touch operation on the touch-sensitive screen. However, there is less developments on how this kind of tactile feedback is applied with various games in an electronic device to bring a new level of tactile experience to the user when he or she is operating the games.
Therefore, what is needed is a means to solve the problem described above.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The modules in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views.
The display module 11 displays a number of game objects set by a game when the electronic device 100 runs the game. Take a racing game for example, the game objects includes lanes, obstacles, tools to be selected, and awards. Each game object takes up a number of continuous positions of the screen 10. In the embodiment, a center position of the continuous positions is a target position employed to determine how to simulate the body member. It is notable that the target position is not limited to the center position of the continuous positions and can be varied as needed.
The touch determining module 12 determines each touched position of a slide operation according to touch signals from the screen 10. Specifically, each time when a slide operation is executed on the screen 10, different touched positions of the screen 10 are successively touched, thus, a new touched positions on the screen 10 may be different from a previous touched position along with the slide operation.
The analyzing module 13 determines whether a first distance between one touched position and one target position is less than a predetermined distance. If the first distance between one touched position and one target position is less than the predetermined distance, the touch operation is sufficiently close to one game object having the target position and one game object may be touched, thus a tactile stimulation may be provided to the body member.
The control module 14 determines an electrode 220 corresponding to the touched position according to the first relationship between the positions and the electrodes 220 if the first distance between one touched position and one target position is less than the predetermined distance, and then energizes the determined electrodes 220 via the power supply unit 23 with a predetermined electrical parameter. Thus, a tactile stimulation is provided to the body member touching the screen 10. In the embodiment, the electrical parameter is the amplitude or frequency of electrical current energizing the electrodes 220.
In the embodiment, the storage unit 30 further stores a second relationship between different game objects and electrical parameters. Each game object corresponds to one electrical parameter. After determining the electrode 220 corresponding to the touched position, the control module 14 further determines the electrical parameter corresponding to the game object which has the target position close to the touched position according to the second relationship between the game objects and electrical parameters, and then energizes the determined electrodes 220 with the determined electrical parameter. Therefore, different characteristics of the tactile stimulation can be generated when the body member touches different game objects.
The analyzing module 13 further determines whether a second distance between a new touched position of the slide operation and the target position is different from the first distance. The control module 14 further determines an electrode 220 corresponding to the new touched position if the second distance is different from the first distance, alters the predetermined electronic parameter according to a difference between the first and the second distances, and energizes the electrode 220 corresponding to the new touched position with the altered electrical parameter, thereby providing a varied tactile stimulation to the body member to inform the user whether the slide operation is a desired action.
In the embodiment, the control module 14 increases the predetermined electrical parameter energized to the electrode 220 corresponding to the new touched position when the second distance is greater than the first distance to enhance the tactile stimulation toward the game object, and decreases the predetermined electrical parameter energized to the electrode 220 corresponding to the new touched position when the second distance is less than the first distance to weaken the tactile stimulation away from the game object.
In step S41, the display module 11 displays a number of game objects set by a game when the electronic device 100 runs the game. Each game includes a target position.
In step S42, the touch determining module 12 determines each touched position of a slide operation according to touch signals from the screen 10.
In step S43, the analyzing module 13 determines whether a first distance between one touched position and one target position is less than a predetermined distance, if yes, the procedure goes to step 44; otherwise, the procedure goes back to step S43.
In step S44, the control module 14 determines an electrode 220 corresponding to the touched position according to the first relationship between the positions and the electrodes 220, and energizes the determined electrode 220 via the power supply unit 23 with a predetermined electrical parameter. In the embodiment, the storage unit 30 further stores a second relationship between different game objects and electrical parameters, and each game object corresponds to one electrical parameter. The control module 14 further determines the electrical parameter corresponding to the game object which has the target position close to the touched position according the second relationship between the game objects and electrical parameters, and then energizes the determined electrode 220 with the determined electrical parameter.
In step S45, the analyzing module 13 whether a second distance between a new touched position of the slide operation and the target position is different from the first distance, if yes, the procedure goes to step S46; otherwise, the procedure goes back to step S45.
In step S46, the control module 14 determines an electrode 220 corresponding to the new touched position, alters the predetermined electronic parameters according to a difference between the first and the second distances, and energizes the electrode 220 corresponding to the new touched position with the altered electrical parameter. In the embodiment, the control module 14 increases the predetermined electrical parameter energized to the electrode 220 corresponding to the new touched position when the second distance is greater than the first distance to enhance the tactile stimulation toward the game object, and decreases the predetermined electrical parameter energized to the electrode 220 corresponding to the new touched position when the second distance is less than the first distance to weaken the tactile stimulation away from the game object.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210537346.6 | Dec 2012 | CN | national |