CN105045498B - The sense of touch generation method of virtual push button position in mobile terminal - Google Patents

The sense of touch generation method of virtual push button position in mobile terminal Download PDF

Info

Publication number
CN105045498B
CN105045498B CN201510165147.0A CN201510165147A CN105045498B CN 105045498 B CN105045498 B CN 105045498B CN 201510165147 A CN201510165147 A CN 201510165147A CN 105045498 B CN105045498 B CN 105045498B
Authority
CN
China
Prior art keywords
screen
button
region
virtual push
push button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510165147.0A
Other languages
Chinese (zh)
Other versions
CN105045498A (en
Inventor
潘欣
孙宏彬
赵健
王鑫
任斌
李天宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun Institute Technology
Original Assignee
Changchun Institute Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changchun Institute Technology filed Critical Changchun Institute Technology
Priority to CN201510165147.0A priority Critical patent/CN105045498B/en
Publication of CN105045498A publication Critical patent/CN105045498A/en
Application granted granted Critical
Publication of CN105045498B publication Critical patent/CN105045498B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The sense of touch generation method of virtual push button position in a kind of mobile terminal, it is characterised in that comprise the following steps:Step 1: calculating screen according to the screen size of terminal device and horizontal, longitudinal pixel count divides yardstick;Step 2: the screen obtained according to step one divides the border of yardstick and virtual push button, by screen be divided into button border outer region, button border inner region, button Face region and with button extraneous areas;Step 3: vibrations and the dwell time interval of mobile device are specified in the position moved according to finger on screen, speed and the region being presently in, different vibrating modes are obtained.The invention enables intelligent mobile terminal in the case of additional hardware cost is not increased, the border sense of touch of virtual push button on screen is produced;For mobile terminal device provide it is a kind of driving, manipulate plant equipment, manipulate intelligent appliance when need not see that screen touches a kind of interactive mode of button, improve user experience and the security of configuration processor order.

Description

The sense of touch generation method of virtual push button position in mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, the sense of touch of virtual push button position in more particularly to a kind of mobile terminal Generation method.
Technical background
The mobile terminal device using IOS, Android and WindowsPhone as representative is widely applied at present, should Kind equipment is generally configured with tangibly display screen, and user can click on the button that shows on screen to perform corresponding order, together When the kind equipment also carry flat electric machine, vibration prompting can be provided the user.
When user wants to click on virtual push button, it usually needs have a look at the position of button on a display screen, then could It is correct to click on.Under some application scenarios, such as:Driving, operated machine using application program equipment, control intelligent appliance, See that the process clicked on again after screen may reduce Consumer's Experience, operational delays opportunity, can even cause user to note Power is scattered in turn result in security incident.
User is allowed not see that screen can click virtual push button in order to be able to reach, the current field solution there are two: Pointed out 1. terminal device vibrates when clicking on button to user, but the vibration of single-frequency can not be provided the user with The definite information where of button, it is impossible to ensure that user correctly clicks on, this mode can not when button more with the presence of screen User is allowed to distinguish the border of button;2. use entity button(Such as button with Bluetooth function), this button can not only increase Additional hardware cost, and it is typically only capable to send more single instruction(Such as answer the call, take pictures, return to main interface)So that button Function is relatively fixed, it is impossible to tackle changeable application environment and user's request.
The content of the invention
For the defect of prior art, the present invention provides a kind of sense of touch generation side of virtual push button position in mobile terminal Method.Using this method, user can be slided with finger on the screen of intelligent touch-screen mobile phone, and equipment can when by virtual push button The tactile impressions information of button position is brought to user to produce the vibrations of varying strength pattern, user is being seen screen In the case of obtain the positional information of virtual push button, and then can send and correct click on order.
To achieve the above object, the present invention provides a kind of sense of touch generation method of virtual push button position in mobile terminal, its It is characterised by comprising the following steps:
Step 1: calculating screen according to the screen size of terminal device and horizontal, longitudinal pixel count divides yardstick;
Step 2: the screen obtained according to step one divides the border of yardstick and virtual push button, screen is divided into button Border outer region, button border inner region, button Face region and with button extraneous areas;
Step 3: mobile device is specified in the position moved according to finger on screen, speed and the region being presently in Vibrations and dwell time interval, obtain different vibrating modes.
The method that described calculating screen divides yardstick is:The touch-screen catercorner length inch unit of mobile terminal is ScreenSize, the horizontal pixel number of touch-screen is width, and longitudinal number of pixels is heigh, and screen area divides yardstick BorderScale can be calculated by below equation:
Wherein a is scaled parameter, and Round is is rounded up, and BorderScale computer result is one Integer, represents the yardstick of the division of screen area.
Described scaled parameter is to take 0.16 for the equipment a that screen size is less than 4 inches, be more than for screen etc. 0.32 is taken in 4 inches of equipment a.
Screen area divide process step be:
S21, one virtual push button of taking-up on screen is touched;
S22, gone out " button border outer region " according to the button boundary demarcation;
Whether S23, the width for judging button and height pixel count are all higher than BorderScale, if greater than going to S231, otherwise goes to S232;
S231, mark off " button border inner region " and " button Face region ";
S232, mark off " button border inner region ";
S24, judge whether to handle virtual push button all on screen, S21 is gone to if be not disposed, it is no Then go to S25;
S25, " button border outer region ", " button border inner region " and " button table will be not divided on screen All region divisions in face region " are " with button extraneous areas ".
In a specific screen area, it is as shown in Figure 5 that processing finger slides the flow shaken with equipment on screen:
S31, the position coordinates of detection finger on the touchscreen;
It is internal " with button extraneous areas " whether S32, the position coordinates are in, and is to go to S33, no to go to S34;
S33, do not shake, go to S31 and continue to detect finger position;
S34, the region residing for, set Param1 and Param2 value;
S35, calculating V1 and V2;
S36, call smart mobile phone API, V1 milliseconds of continuous vibration;
S37, stopping wait V2 milliseconds, go to S31 and continue to detect finger position.
The invention enables intelligent mobile terminal in the case of additional hardware cost is not increased, virtual push button on screen is produced Border sense of touch;Providing one kind for mobile terminal device need not in driving, manipulation plant equipment, manipulation intelligent appliance See screen and touch a kind of interactive mode of button, improve user experience and the security of configuration processor order.
Brief description of the drawings
Fig. 1 is the overall flow schematic diagram of the present invention;
Fig. 2 is the graph of a relation that virtual push button border is divided with screen area;
Fig. 3 is the flow chart for marking off key area on device screen according to the border of virtual key;
Fig. 4 is that finger is slided and the graph of a relation of specific region on screen;
Fig. 5 is to handle finger to slide the flow chart shaken with equipment on screen.
Embodiment
As shown in Fig. 1, the sense of touch generation method of virtual push button position in a kind of mobile terminal of present invention offer, including with Lower step:
S1, calculating screen area divide yardstick
The touch-screen catercorner length of mobile terminal is ScreenSize(In inches), the horizontal pixel of touch-screen Number is width, and longitudinal number of pixels is heigh.Screen area, which divides yardstick BorderScale, can pass through below equation meter Calculate:
Wherein a is scaled parameter, and 0.16 is taken for the equipment a that screen size is less than 4 inches, be more than for screen etc. 0.32 is taken in 4 inches of equipment a;Round is is rounded up, and BorderScale computer result is an integer, generation The yardstick of the division of table screen area;
S2, key area marked off on device screen according to the border of virtual key
The touch screen of mobile terminal can show virtual push button, and the frame of virtual push button determines its position and size, such as Fig. 2 institutes Show, the frame based on virtual push button, obtain 4 regions related to button frame:
Button border outer region 1:Expand BorderScale pixel to outside button from virtual push button frame 5 to frame Region;
Button border inner region 2:BorderScale pixel is reduced into button from virtual push button frame 5 to frame Region;
Button Face region 3:Region of the button interior in addition to " button border inner region ", when virtual push button width When being less than BorderScale pixel with height, the region is not divided;
With button extraneous areas 4:" button border outer region ", " button border inner region " are not divided on screen The part in " button Face region ".
When the touch screen of a mobile terminal shows multiple virtual push buttons, the flow that screen area is divided is as shown in Figure 3:
S21, one virtual push button of taking-up on screen is touched;
S22, gone out " button border outer region " according to the button boundary demarcation;
Whether S23, the width for judging button and height pixel count are all higher than BorderScale, if greater than going to S231, otherwise goes to S232;
S231, mark off " button border inner region " and " button Face region ";
S232, mark off " button border inner region ";
S24, judge whether to handle virtual push button all on screen, S21 is gone to if be not disposed, it is no Then go to S25;
S25, " button border outer region ", " button border inner region " and " button table will be not divided on screen All region divisions in face region " are " with button extraneous areas ";
S3, the vibrating mode according to finger shift position, speed and residing region designated equipment on touch screen
Finger and specific screens regional relation are as shown in Figure 4.When finger is slided by front direction on touch-screen 6, screen Finger position is constantly caught, its position is P2 points after finger enters specific region, and its transverse and longitudinal coordinate is (X2, Y2); It is moved to before P2 points, finger position is P1 points(P1 is required no knowledge about inside which region), its in length and breadth coordinate be (X1,Y1);It is T seconds to be moved to the time that P2 points are undergone from P1 points, and finger moving direction angle is:
Displacement parameter is:
According to displacement parameter, the pattern of equipment vibrations is as follows:
Once shake duration(Unit millisecond):
Waiting time after vibrations(Unit millisecond):
Can be with the vibrations behavior of control device according to the two parameters, equipment vibrations once include stopping after v1 milliseconds of vibrations V2 milliseconds are only shaken, v1 is longer and v2 more skinny device vibrations are more violent, otherwise shakes weaker, Param1 and Param2 in formula The intensity of vibrations is determined, specific region of the finger on screen will need to obtain different vibrating modes, specific as follows:
Button border outer region:Using most strong vibrations, Param1=2, Param2=0.5
Button border inner region:Using the vibrations of most " weakness ", Param1=0.5, Param2=2
Button Face region:Using medium vibrations, Param1=1, Param2=1
With button extraneous areas:Do not shake
In a specific screen area, it is as shown in Figure 5 that processing finger slides the flow shaken with equipment on screen:
S31, the position coordinates of detection finger on the touchscreen;
It is internal " with button extraneous areas " whether S32, the position coordinates are in, and is to go to S33, no to go to S34;
S33, do not shake, go to S31 and continue to detect finger position;
S34, the region residing for, set Param1 and Param2 value;
S35, calculating V1 and V2;
S36, call smart mobile phone API, V1 milliseconds of continuous vibration;
S37, stopping wait V2 milliseconds, go to S31 and continue to detect finger position.

Claims (5)

1. the sense of touch generation method of virtual push button position in a kind of mobile terminal, it is characterised in that comprise the following steps:
Step 1: calculating screen according to the screen size of terminal device and horizontal, longitudinal pixel count divides yardstick;
Step 2: the screen obtained according to step one divides the border of yardstick and virtual push button, screen is divided into button border Perimeter, button border inner region, button Face region and with button extraneous areas;
Step 3: the vibrations of mobile device are specified in the position moved according to finger on screen, speed and the region being presently in With dwell time interval, different vibrating modes are obtained.
2. the sense of touch generation method of virtual push button position in mobile terminal according to claim 1, it is characterised in that:It is described Calculating screen divide yardstick method be that the touch-screen catercorner length of mobile terminal is set into an inch unit to be ScreenSize, the horizontal pixel number of touch-screen is width, and longitudinal number of pixels is heigh, and screen area divides yardstick BorderScale is calculated by below equation:
Wherein a is scaled parameter, and Round is is rounded up, and BorderScale computer result is whole for one Number, represents the yardstick of the division of screen area.
3. the sense of touch generation method of virtual push button position in mobile terminal according to claim 2, it is characterised in that:It is described Scaled parameter a depend on screen size, being less than 4 inches of equipment a for screen size takes 0.16, is more than for screen Equipment a equal to 4 inches takes 0.32.
4. the sense of touch generation method of virtual push button position in mobile terminal according to claim 1, it is characterised in that screen The process step of region division is:
S21, one virtual push button of taking-up on screen is touched;
S22, gone out " button border outer region " according to the button boundary demarcation;
Whether S23, the width for judging button and height pixel count are all higher than BorderScale, no if greater than S231 is gone to Then go to S232;
S231, mark off " button border inner region " and " button Face region ";
S232, mark off " button border inner region ";
S24, judge whether to handle virtual push button all on screen, go to S21 if be not disposed, otherwise turn To S25;
S25, " button border outer region ", " button border inner region " and " button Face area will be not divided on screen All region divisions in domain " are " with button extraneous areas ".
5. the sense of touch generation method of virtual push button position in mobile terminal according to claim 1, it is characterised in that:One Individual specific screen area, processing finger slides the flow shaken with equipment on screen and is:
S31, the position coordinates of detection finger on the touchscreen;
It is internal " with button extraneous areas " whether S32, the position coordinates are in, and is to go to S33, no to go to S34;
S33, do not shake, go to S31 and continue to detect finger position;
S34, the region residing for, set Param1 and Param2 value;
S35, calculating V1 and V2;
S36, call smart mobile phone API, V1 milliseconds of continuous vibration;
S37, stopping wait V2 milliseconds, go to S31 and continue to detect finger position.
CN201510165147.0A 2015-04-09 2015-04-09 The sense of touch generation method of virtual push button position in mobile terminal Expired - Fee Related CN105045498B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510165147.0A CN105045498B (en) 2015-04-09 2015-04-09 The sense of touch generation method of virtual push button position in mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510165147.0A CN105045498B (en) 2015-04-09 2015-04-09 The sense of touch generation method of virtual push button position in mobile terminal

Publications (2)

Publication Number Publication Date
CN105045498A CN105045498A (en) 2015-11-11
CN105045498B true CN105045498B (en) 2017-11-07

Family

ID=54452073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510165147.0A Expired - Fee Related CN105045498B (en) 2015-04-09 2015-04-09 The sense of touch generation method of virtual push button position in mobile terminal

Country Status (1)

Country Link
CN (1) CN105045498B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102015015075A1 (en) * 2015-11-20 2017-05-24 Audi Ag Method for operating an input device and input device
JP6520856B2 (en) * 2016-08-02 2019-05-29 株式会社デンソー Display operation device
CN110201390A (en) * 2019-04-24 2019-09-06 深圳点猫科技有限公司 The implementation method and electronic equipment of the gradual control system of game based on programming
CN111666031B (en) * 2020-06-05 2022-03-04 阿波罗智联(北京)科技有限公司 Virtual key control method, device, equipment and storage medium for vehicle-mounted terminal
WO2022174453A1 (en) * 2021-02-22 2022-08-25 京东方科技集团股份有限公司 Tactile feedback method and apparatus for virtual button, and electronic device
CN114265530A (en) * 2021-12-08 2022-04-01 贵阳语玩科技有限公司 Button construction and response method, device and terminal based on iOS system
US20240281067A1 (en) * 2022-01-25 2024-08-22 Beijing Boe Technology Development Co., Ltd. Tactile feedback method, tactile feedback apparatus and touch display apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855003A (en) * 2011-05-20 2013-01-02 索尼公司 Haptic device for position detection
CN102893241A (en) * 2010-05-12 2013-01-23 诺基亚公司 Detecting touch input and generating perceptible touch stimulus
CN103019424A (en) * 2011-09-28 2013-04-03 宏碁股份有限公司 Feedback method of virtual input device and electronic device thereof
CN103279223A (en) * 2013-05-27 2013-09-04 深圳市金立通信设备有限公司 Method, device and system for touch information feedback
CN104238783A (en) * 2013-06-07 2014-12-24 阿里巴巴集团控股有限公司 Touch screen control method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR112012010049A2 (en) * 2009-10-29 2016-05-24 New Transducers Ltd touch device
WO2013169842A2 (en) * 2012-05-09 2013-11-14 Yknots Industries Llc Device, method, and graphical user interface for selecting object within a group of objects

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102893241A (en) * 2010-05-12 2013-01-23 诺基亚公司 Detecting touch input and generating perceptible touch stimulus
CN102855003A (en) * 2011-05-20 2013-01-02 索尼公司 Haptic device for position detection
CN103019424A (en) * 2011-09-28 2013-04-03 宏碁股份有限公司 Feedback method of virtual input device and electronic device thereof
CN103279223A (en) * 2013-05-27 2013-09-04 深圳市金立通信设备有限公司 Method, device and system for touch information feedback
CN104238783A (en) * 2013-06-07 2014-12-24 阿里巴巴集团控股有限公司 Touch screen control method and device

Also Published As

Publication number Publication date
CN105045498A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
CN105045498B (en) The sense of touch generation method of virtual push button position in mobile terminal
KR102469722B1 (en) Display apparatus and control methods thereof
EP3179358A1 (en) Method and apparatus for inputting contents based on virtual keyboard, and touch device
US10055064B2 (en) Controlling multiple devices with a wearable input device
US9337926B2 (en) Apparatus and method for providing dynamic fiducial markers for devices
US8884924B2 (en) Information processing apparatus, information processing method, information recording medium, and program
US10572017B2 (en) Systems and methods for providing dynamic haptic playback for an augmented or virtual reality environments
CN107124508A (en) Location regulation method, device and the terminal of suspension control, readable storage medium storing program for executing
CN105607853B (en) A kind of information processing method and electronic equipment
CN104866188A (en) Display interface adjusting method
CN108139846A (en) Support multiple users on Large projection capacitive touch screen
CN107362533A (en) The game paddle system of mobile cursor function is realized using suspended window
CN104932788A (en) Adaptive touch screen control method and equipment
JP5671576B2 (en) Computer user interface device, parameter control method and computer program
CN104346119B (en) The method and electronic equipment of display
CN105739817A (en) Icon hiding method and device and mobile terminal
JP2015007832A (en) Image processing apparatus, image processing method, and program
CN107003731A (en) User and the interactive method of electronic installation sense of touch and electronic installation
US20140115510A1 (en) Information Processing Method And Electronic Device
CN109561202B (en) Control processing method and device, terminal equipment, vehicle machine and system
CN103716673B (en) Somatosensory-mode click button control method and system
CN106843676B (en) Touch control method and touch control device for touch terminal
CN103294380B (en) The switching method and device of screen display mode
CN105760092B (en) A kind of application control method, apparatus and electronic equipment for touch panel device
CN113986067A (en) Object control method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171107