As smartphones are increased in resolution and calculation speed and as graphic processing devices thereof are enhanced in performance, virtual reality (VR) which operated in only conventional large devices operates in small, lightweight devices such as smart glasses, head mount devices (HMDs), and the like. For example, users view three-dimensional (3D) images watched on conventional 3D televisions (TVs) and watch 360-degree panorama images with low utilization, through their HMDs. Further, an HMD may sense motion of a head of its user via its acceleration sensor and may provide magnificence he or she does not feel on a conventional monitor or a screen of a smartphone to him or her.
If outputting augmented reality (AR), an electronic device according to the related art operates in such a manner as to generate a simple line or graphic symbol based on an input of its user or simply modify a virtual object. In this case, the electronic device may be shaken in a process where an input of the user occurs and may fail to generate a desired input corresponding to intention of the user.