US 12,449,916 B2
Control method, stylus, apparatus, electronic device, and storage medium
Linnan Li, Beijing (CN); Yong Zhang, Beijing (CN); Xinyu Chen, Beijing (CN); and Lu Cheng, Beijing (CN)
Assigned to BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed by BEIJING XIAOMI MOBILE SOFTWARE CO., LTD., Beijing (CN)
Filed on Jan. 12, 2024, as Appl. No. 18/412,423.
Claims priority of application No. 202310952488.7 (CN), filed on Jul. 31, 2023.
Prior Publication US 2025/0044882 A1, Feb. 6, 2025
Int. Cl. G06F 3/0354 (2013.01); G06F 3/041 (2006.01); G06F 3/0481 (2022.01); G06F 3/04883 (2022.01)
CPC G06F 3/03545 (2013.01) [G06F 3/04162 (2019.05); G06F 3/0481 (2013.01); G06F 3/04883 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A control method, comprising:
receiving a key press event sent by a stylus, wherein the stylus comprises a first physical key, a second physical key and a third physical key;
determining a press type according to the key press event related to the first physical key;
determining a control operation corresponding to the press type; and
performing the control operation,
wherein different press types correspond to different control operations,
wherein determining the control operation corresponding to the press type comprises:
determining the control operation corresponding to the press type according to an application type, a running state of a function of a current interface of a foreground application, and the press type,
wherein in a case that the application type of the foreground application is different, a same press type corresponds to a different control operation,
wherein the second physical key is configured for a screenshot function and the third physical key is configured for a shorthand function,
wherein in a case that the press type is a first type, the control operation corresponding to the first type comprises performing a drawing operation on a display interface,
wherein the control method further comprises: receiving a mouse movement event sent by the stylus, and
wherein performing the drawing operation on the display interface comprises:
performing the drawing operation on the display interface according to product information of the stylus and the mouse movement event.