A stylus , comprising: a processor , a touch sensor , a motion sensor , and a wireless communication module , wherein the wireless communication module is configured to establish a wireless communication connection with an electronic device; the touch sensor is configured to detect a first input; the wireless communication module is configured to send, in response to the first input, a first function signal corresponding to the first input in a first mode, wherein the first function signal corresponds to a first function to be performed by the electronic device; and the processor is further configured to control the stylus to switch from the first mode to a second mode in response to detecting that strength of an electrical signal released by a touch control screen in the electronic device is less than a first value; further wherein, in the second mode: the touch sensor is further configured to detect a second input; the motion sensor is configured to detect position information of the stylus; and the wireless communication module is further configured to send, in response to the second input, a second function signal corresponding to the second input in the second mode and the position information to the electronic device, wherein the second function signal corresponds to a second function to be performed by the electronic device; wherein the first input and the second input correspond to a same operation performed on the stylus by a user, and the first function signal and the second function signal are different function signals corresponding to different functions. the wireless communication module is configured to establish a wireless communication connection with an electronic device; the touch sensor is configured to detect a first input; the wireless communication module is configured to send, in response to the first input, a first function signal corresponding to the first input in a first mode, wherein the first function signal corresponds to a first function to be performed by the electronic device; and the processor is further configured to control the stylus to switch from the first mode to a second mode in response to detecting that strength of an electrical signal released by a touch control screen in the electronic device is less than a first value; further wherein, in the second mode: the touch sensor is further configured to detect a second input; the motion sensor is configured to detect position information of the stylus; and the wireless communication module is further configured to send, in response to the second input, a second function signal corresponding to the second input in the second mode and the position information to the electronic device, wherein the second function signal corresponds to a second function to be performed by the electronic device; wherein the first input and the second input correspond to a same operation performed on the stylus by a user, and the first function signal and the second function signal are different function signals corresponding to different functions. the touch sensor is further configured to detect a second input; the motion sensor is configured to detect position information of the stylus; and the wireless communication module is further configured to send, in response to the second input, a second function signal corresponding to the second input in the second mode and the position information to the electronic device, wherein the second function signal corresponds to a second function to be performed by the electronic device; wherein the first input and the second input correspond to a same operation performed on the stylus by a user, and the first function signal and the second function signal are different function signals corresponding to different functions. <EOS>