Disclosure of Invention
The invention mainly aims to provide a terminal control method with a built-in touch pen, a device with the built-in touch pen, a terminal and a computer readable storage medium, and aims to solve the problem that the terminal with the touch pen cannot interact with the terminal when the touch pen is not pulled out.
In order to achieve the above object, the present invention provides a terminal control method of a built-in stylus, wherein the terminal includes a stylus provided with a pressing key, and the stylus is fixed, the terminal control method of the built-in stylus includes the following steps:
detecting a pressing operation of a pressing key of a stylus;
and after the pressing operation is detected, the terminal carries out preset operation.
Optionally, after detecting the pressing operation, the step of performing a preset operation by the terminal includes:
detecting a fixed state of the stylus after detecting the pressing operation;
and when the fixed state of the touch pen is not pulled out, the terminal carries out preset operation.
Optionally, after the pressing operation is detected, the step of performing a preset operation by the terminal further includes:
after the pressing operation is detected, performing authority verification;
and when the authority passes the verification, the terminal performs preset operation.
Optionally, the preset operation includes at least one of:
the terminal clearing inactive applications, including running but unused applications;
the terminal deletes a target file of which the file type is a preset type in all files of the inactive application;
and the terminal starts a preset application.
Optionally, after the step of detecting the fixed state of the stylus pen after detecting the pressing operation, the method further includes:
and when the fixed state of the touch control pen is detected to be pulled out, adjusting display parameters when the touch control pen contacts the screen of the terminal.
Optionally, the adjusting the display parameter when the stylus touches the screen of the terminal includes at least one of:
adjusting the color of a line displayed when the touch pen is in contact with the screen of the terminal;
and adjusting the thickness of lines displayed when the touch pen is in contact with the screen of the terminal.
Optionally, the terminal control method of the built-in stylus further includes:
displaying a preset operation setting interface when detecting that the pressed key rotates for a preset angle and the touch control pen is not pulled out;
the preset operation setting interface is used for updating the preset operation according to the setting operation of the user.
In order to achieve the above object, the present invention provides a stylus built-in device, wherein a stylus for pressing a key and a fixed position of the stylus are provided on the device, the stylus built-in device comprising:
a detection unit for detecting an operation of the stylus;
and the execution unit is used for controlling the device to execute preset operation according to the operation of the touch control pen.
Optionally, the operation of the stylus includes at least one of:
a pressing operation of a pressing key of the stylus pen;
and rotating the pressing key of the touch control pen.
Optionally, the apparatus with a built-in stylus further includes:
the state detection unit is used for detecting the fixed state of the touch pen, wherein the fixed state comprises an unplugged state and/or an unplugged state.
Optionally, when the operation of the stylus is a pressing operation of the pressing key, and the fixed state is the unplugged state, the preset operation includes at least one of:
the apparatus purging inactive applications, including running but unused applications;
the device deletes a target file of which the file type is a preset type in all files of the inactive application;
and the terminal starts a preset application.
Optionally, when the operation of the stylus is a pressing operation of pressing a key, and the fixed state is a pulled-out state, the preset operation is to adjust a display parameter when the stylus contacts a screen of the device, where the display parameter includes at least one of:
adjusting the color of a line displayed when the stylus touches the screen of the device;
and adjusting the thickness of lines displayed when the touch pen is in contact with the screen of the device.
Optionally, when the operation of the stylus is a rotation operation of pressing a key and the fixed state is a non-pulled-out state, displaying a preset operation setting interface;
the preset operation setting interface is used for updating the preset operation according to the setting operation of the user.
In addition, in order to achieve the above object, the present invention further provides a terminal, wherein the terminal includes a stylus provided with a press key, a stylus fixing position, a processor, a memory, and a terminal control program with a built-in stylus stored in the memory and operable on the processor, and the terminal implements the above-mentioned steps of the method for controlling a terminal with a built-in stylus when executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having stored thereon a terminal control program with a built-in stylus, which when executed by a processor, implements the steps of the terminal control method with a built-in stylus as described above.
According to the terminal control method of the built-in touch pen, the device of the built-in touch pen, the terminal and the computer readable storage medium provided by the invention, firstly, the pressing operation of the pressing key of the touch pen is detected, and then, after the pressing operation is detected, the terminal carries out the preset operation. According to the invention, when the built-in terminal stylus is not pulled out, the terminal can interact with the terminal through the pressing key of the stylus and can perform preset operation, so that the problem that the terminal with the stylus cannot interact with the terminal when the stylus is not pulled out is solved.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In order to prevent the loss of the stylus and quickly find the control pen in the prior art, mobile terminals with built-in stylus are available in the market. However, the mobile terminal with a built-in stylus cannot realize the above function when the stylus is not pulled out, so that the existing terminal with the stylus cannot interact with the terminal when the stylus is not pulled out.
The invention provides a solution, firstly, detecting the pressing operation of a pressing key of a touch pen, and then, after detecting the pressing operation, the terminal carries out the preset operation. According to the invention, when the built-in terminal stylus is not pulled out, the terminal can interact with the terminal through the pressing key of the stylus and can perform preset operation, so that the problem that the terminal with the stylus cannot interact with the terminal when the stylus is not pulled out is solved.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Referring to fig. 1, the terminal may include: aprocessor 1001, such as a CPU, amemory 1002, acommunication bus 1003, and anetwork interface 1004. Thecommunication bus 1003 is used for implementing connection communication between the components in the device. Thenetwork interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). Thememory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). Thememory 1002 may alternatively be a storage device separate from theprocessor 1001. As shown in fig. 1, thememory 1002, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a terminal control program with a built-in stylus pen.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust brightness of the display screen according to brightness of ambient light, and the proximity sensor may turn off the display screen and/or backlight when the smart terminal moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the intelligent terminal, and related functions (such as pedometer and tapping) for vibration recognition; of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Among the hardware involved in the terminal shown in FIG. 1, thenetwork interface 1004 may be used for terminal interaction with a stylus; and theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and perform the following operations:
detecting a pressing operation of a pressing key of a stylus;
and after the pressing operation is detected, the terminal carries out preset operation.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
detecting a fixed state of the stylus after detecting the pressing operation;
and when the fixed state of the touch pen is not pulled out, the terminal carries out preset operation.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
after the pressing operation is detected, performing authority verification;
and when the authority passes the verification, the terminal performs preset operation.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
the terminal clearing inactive applications, including running but unused applications;
the terminal deletes a target file of which the file type is a preset type in all files of the inactive application;
and the terminal starts a preset application.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
and when the fixed state of the touch control pen is detected to be pulled out, adjusting display parameters when the touch control pen contacts the screen of the terminal.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
adjusting the color of a line displayed when the touch pen is in contact with the screen of the terminal;
and adjusting the thickness of lines displayed when the touch pen is in contact with the screen of the terminal.
Further, theprocessor 1001 may be configured to call a terminal control program of a built-in stylus stored in thememory 1002, and further perform the following operations:
displaying a preset operation setting interface when detecting that the pressed key rotates for a preset angle and the touch control pen is not pulled out;
the preset operation setting interface is used for updating the preset operation according to the setting operation of the user.
Referring to fig. 2, in an embodiment of the method for controlling a terminal with a built-in stylus according to the present invention, the method for controlling a terminal with a built-in stylus includes:
step S10, detecting the pressing operation of the pressing key of the touch pen;
the terminal control method of the built-in touch pen provided by the invention is mainly used for interaction between the terminal and the touch pen which is not pulled out. The terminal related to the terminal control method with the built-in touch pen provided by the invention comprises but is not limited to a mobile phone, a tablet personal computer, a computer and the like, and a related application system is pre-loaded on the terminal.
In this embodiment, the terminal includes a touch pad provided with a pressing key and a touch pen fixing position, a touch pen is fixed on the touch pen fixing position, and the touch pen is provided with the pressing key. The push button can be sprung or pushed back. The pressing operation comprises a bouncing operation and a pressing back operation, the bouncing operation corresponds to bouncing of the pressing key, and the pressing back operation corresponds to pressing back of the pressing key. It can be understood that, a sending unit is further disposed in the stylus pen, and is used for sending a corresponding pressing operation to the terminal when the stylus pen is bounced or pressed back. The existing touch pen can simulate the left-click operation of a mouse in a click mode, so that simple interaction with controlled devices such as a tablet personal computer is realized, and characters (including letters, numbers, characters and symbols) or drawings and the like can be input on handwriting input software loaded on the controlled devices such as the tablet personal computer in a handwriting mode. In order to prevent the loss of the stylus and to quickly find the control pen, mobile terminals with built-in stylus are available on the market. Because the mobile terminal with the built-in touch pen can not realize the functions when the touch pen is not pulled out, the existing terminal with the touch pen can not interact with the terminal when the touch pen is not pulled out, a pressing key capable of bouncing up or pressing back is arranged at the pen point of the touch pen, even if the touch pen is in the touch pen fixing position of the terminal, the touch pen can also interact with the terminal through the pressing key on the touch pen, and the interaction is set by a user in a self-defined mode or is set in a default mode. When a user has a requirement for interacting with a terminal, pressing a pressing key on the touch pen, feeding back information corresponding to the pressing operation to the terminal by the touch pen, and detecting the information corresponding to the pressing operation fed back by the touch pen in real time by the terminal.
And step S20, after the pressing operation is detected, the terminal carries out preset operation.
In this embodiment, the terminal performs a preset operation after detecting the pressing operation. Wherein the preset operation comprises at least one of:
the terminal clearing inactive applications, including running but unused applications;
the terminal deletes a target file of which the file type is a preset type in all files of the inactive application;
and the terminal starts a preset application.
It is to be understood that the preset operation is not limited to the above-listed operations. The preset operation can also be other interactive operations such as turning up or turning down the ring of the terminal and/or displaying unread mails.
For a better understanding of the present embodiment, the following examples are set forth. For example, a user sets in advance in a preset operation setting interface, and sets the preset operation as clearing the inactive application of the terminal. When the stylus is not pulled out and the user presses the pressing key of the stylus, for example, the user pops up the pressing key and presses back the pressing key within a preset time, the stylus feeds back information of the pressing operation to the terminal, and the terminal detects the pressing operation information fed back by the stylus and then clears the inactive application of the terminal. It can be understood that, the present embodiment is not limited to the number of the preset operations, and the user may preset a plurality of interactive operations, and execute the preset plurality of interactive operations after the terminal detects the pressing operation information fed back by the stylus.
In the technical scheme disclosed in this embodiment, a pressing operation of a pressing key of a stylus pen is detected first, and then, after the pressing operation is detected, the terminal performs a preset operation. According to the invention, when the built-in terminal stylus is not pulled out, the terminal can interact with the terminal through the pressing key of the stylus and can perform preset operation, so that the problem that the terminal with the stylus cannot interact with the terminal when the stylus is not pulled out is solved.
Referring to fig. 3, based on the above embodiment, in another embodiment, the step S20 includes:
step S21, detecting a fixed state of the stylus pen after detecting the pressing operation;
and step S22, when the fixed state of the touch pen is not pulled out, the terminal carries out preset operation.
In this embodiment, the states of the stylus include a pulled-out state and a non-pulled-out state. Since the preset operation set in the state where the stylus is pulled out is different from the control parameter set in the state where the stylus is not pulled out, the state of the stylus is detected by the detection device on the fixed position after the pressing operation is detected in order to distinguish the next operation. And when the stylus is not pulled out, acquiring a preset operation corresponding to the state of not pulling out, and performing the preset operation.
And when the touch control pen is detected to be pulled out, adjusting display parameters when the touch control pen contacts the screen of the terminal.
Specifically, the adjusting the display parameter when the stylus touches the screen of the terminal includes at least one of: changing the color of a line displayed when the touch pen is in contact with the screen of the terminal; and changing the thickness of lines displayed when the touch pen is in contact with the screen of the terminal. And when the pressing operation is detected and the touch control pen is pulled out, changing the color of the line displayed when the touch control pen contacts the screen of the terminal. Or changing the thickness of lines displayed when the touch pen is in contact with the screen of the terminal. Or when the pressing operation is detected and the touch control pen is pulled out, changing the color and thickness of lines displayed when the touch control pen contacts the screen of the terminal. The line color and the line thickness are preset in the setting interface by the user, and can also be default settings.
In the technical scheme disclosed in this embodiment, the fixed state of the stylus is detected after the pressing operation is detected, and then the corresponding preset operation is performed according to the fixed state of the stylus.
Referring to fig. 4, based on the above-mentioned embodiment shown in fig. 2, in a further embodiment, the step S20 further includes:
step S23, after the pressing operation is detected, authority verification is carried out;
and step S24, when the authority verification is passed, the terminal carries out preset operation.
In this embodiment, when the preset operation is executed, the permission of the preset operation needs to be verified first, and the terminal invokes a self-verification mechanism to verify the permission of the preset operation. It can be understood that each application is an application, each application system is assigned an authority combination, the authority combination is an authority list owned by the application, the authority verification is to verify the authority required to be specified when doing a certain task, then judge whether the intelligent management application is in the applied authority combination according to the required authority, if the intelligent management application is in the applied authority combination, the authority verification is passed, and if the intelligent management application is not in the applied authority combination, the authority verification is not passed. And when the authority passes the verification, the terminal performs preset operation. And when the authority verification is not passed, the preset operation is not executed.
In the technical scheme disclosed in this embodiment, after the pressing operation is detected, the authority verification is performed first, and when the authority verification passes, the terminal performs the preset operation, so that the effect of avoiding the execution of the preset operation from affecting the use of the terminal system is achieved.
Referring to fig. 5, based on any one of the above embodiments, in a further embodiment, the method for controlling a terminal with a built-in stylus further includes the following steps:
step S30, when detecting that the pressed key rotates for a preset angle and the touch control pen is not pulled out, displaying a preset operation setting interface;
and step S40, the preset operation setting interface updates the preset operation according to the setting operation of the user.
In the technical scheme provided by this embodiment, since the interaction requirements of the user are diversified, the default preset operation may not meet the requirements of the user, and therefore, a preset operation self-defining mode needs to be provided for the user. The pressing key of the stylus pen in this embodiment may also be rotated, and when the terminal detects that the pressing key is rotated by a preset angle and the stylus pen is not pulled out, the terminal obtains information of a preset operation setting interface, and displays the preset operation setting interface after generating the preset operation setting interface according to the information. And acquiring the setting operation of the user through the preset operation setting interface.
Specifically, a user can customize a preset operation on the preset operation setting interface, and when the terminal detects a setting operation triggered based on the preset operation setting interface, the user-defined preset operation is determined according to the setting operation.
Further, after the preset operation defined by the user is determined according to the setting operation, the currently determined preset operation is updated to the preset operation corresponding to the pressing operation and capable of being triggered by the pressing operation.
It can be understood that the preset operation is updated every time the user sets one preset operation. Or after the plurality of operations of the user are set, updating the plurality of operations which are not preset.
It should be noted that the steps shown in fig. 5 are not intended to limit the execution order of step S30 and step S40. The step 30 and the step S40 may also be performed before the step S10. The implementation of the method is not described herein.
The embodiment can generate the preset operation setting interface for the user to perform the preset operation, thereby avoiding the operation performed by the interaction between the terminal and the touch pen from being the operation not desired by the user.
In order to achieve the above object, the present invention further provides a device with a built-in stylus, the device with the built-in stylus, and a fixing position for fixing the touch pad.
As shown in fig. 6, the device with built-instylus 100 further includes adetection unit 101 for detecting an operation of the stylus. Anexecution unit 102, wherein theexecution unit 102 is configured to control the apparatus to execute a preset operation according to an operation of the stylus.
Optionally, the operation of the stylus includes a pressing operation of a pressing key of the stylus and/or a rotating operation of the pressing key of the stylus.
As an embodiment, the device with a built-instylus 100 further includes astate detection unit 103, where thestate detection unit 103 is configured to detect a fixed state of the stylus, where the fixed state includes an unplugged state and/or an unplugged state. Wherein, when the operation of the stylus is a pressing operation of the pressing key and the fixed state is the unplugged state, the preset operation includes at least one of:
the apparatus purging inactive applications, including running but unused applications;
the device deletes a target file of which the file type is a preset type in all files of the inactive application;
and the terminal starts a preset application.
Further, when the operation of the stylus is a pressing operation of a pressing key and the fixed state is a pulling-out state, the preset operation is to adjust display parameters when the stylus contacts a screen of the device, and the display parameters include at least one of the following:
adjusting the color of a line displayed when the stylus touches the screen of the device;
and adjusting the thickness of lines displayed when the touch pen is in contact with the screen of the device.
Displaying a preset operation setting interface when the operation of the touch control pen is the rotation operation of pressing a key and the fixed state is the unplugged state; and the preset operation setting interface updates the preset operation according to the setting operation of the user.
In the technical scheme disclosed in this embodiment, the device with the built-in stylus includes a stylus provided with a pressing key, a fixed position of the stylus, a detection unit and an execution unit, and the terminal performs a preset operation by detecting a pressing operation of the pressing key of the stylus and then detecting the pressing operation. According to the invention, when the built-in terminal stylus is not pulled out, the terminal can interact with the terminal through the pressing key of the stylus and can perform preset operation, so that the problem that the terminal with the stylus cannot interact with the terminal when the stylus is not pulled out is solved.
In order to achieve the above object, the present invention further provides a terminal control device with a built-in stylus, which includes a processor, a memory, and a terminal control program with a built-in stylus stored in the memory and capable of running on the processor, wherein the terminal control program with a built-in stylus, when executed by the processor, implements the steps of the terminal control method with a built-in stylus as described above.
In order to achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a terminal control program with a built-in stylus, which when executed by a processor, implements the steps of the terminal control method with a built-in stylus as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, or a tablet computer) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.