CN105407216A - Method and system for realizing key self definition - Google Patents

Method and system for realizing key self definition Download PDF

Info

Publication number
CN105407216A
CN105407216A CN201510704389.2A CN201510704389A CN105407216A CN 105407216 A CN105407216 A CN 105407216A CN 201510704389 A CN201510704389 A CN 201510704389A CN 105407216 A CN105407216 A CN 105407216A
Authority
CN
China
Prior art keywords
key
button
application
event
value
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.)
Pending
Application number
CN201510704389.2A
Other languages
Chinese (zh)
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.)
Suzhou Snail Digital Technology Co Ltd
Original Assignee
Suzhou Snail Digital Technology Co Ltd
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 Suzhou Snail Digital Technology Co Ltd filed Critical Suzhou Snail Digital Technology Co Ltd
Priority to CN201510704389.2A priority Critical patent/CN105407216A/en
Publication of CN105407216A publication Critical patent/CN105407216A/en
Pending legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses a method of realizing key self definition. The method comprises the following steps: a corresponding relationship between applications and a configuration table is set, and a relationship between a key and a response code KEY_DOWN corresponding to an event at the bottom layer of an operation system is built; a file modification action is monitored to respond to a key function corresponding event response code KEY_DOWN corresponding to the key; a system application is switched, and the configuration table for the application after being switched currently is loaded to a system key mapping table; a key function key value corresponding to the key is searched; and the mapped key value event is distributed to the upper layer. In view of a different application, the key value of a physical key is defined again, the reuse function of the key is realized according to the characteristic that the key has a dynamic change value, the use rate of the key is improved, and the user experience is improved.

Description

Realize the self-defining method and system of button
Technical field
The present invention relates to mobile phone physical button and technology is set, particularly relate to one and realize the self-defining method and system of button.
Background technology
The difference that android slaps machine and regular handset has more abundanter buttons, and gives tacit consent to these buttons and play a role in gaming.Different application, may have different demands for button, and as application of taking pictures, it may more need physics to take pictures key and focusing key, and music player application, it is more it is desirable that physics play button, Pause key, and upper one is bent, next song etc.
Therefore, the present invention is directed to different application, redefine the key assignments of physical button, there is according to button the characteristic of dynamic change value, realize the multiplexing function of button, improve the utilization rate of button, improve Consumer's Experience.
Summary of the invention
In order to solve the deficiency that prior art exists, one is the object of the present invention is to provide to realize the self-defining method of button, for different application, redefine the key assignments of physical button, there is according to button the characteristic of dynamic change value, realize the multiplexing function of button, improve the utilization rate of button, improve user's experience.
For achieving the above object, propose one and realize the self-defining method of button, comprise the following steps:
1) application and the corresponding relation of allocation list are set, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom;
2) monitor file modification action, respond keypress function corresponding to described button corresponding event response code KEY_DOWN;
3) system application switches, the allocation list loading the application after current switching to system by key map;
4) the corresponding keypress function key assignments of described button is searched;
5) the described button value event mapped is distributed to upper strata.
Further, described key configurations table changes corresponding described button value.
Further, described button value is dynamic change.
Secondly, for achieving the above object, also propose one and realize the self-defining system of button, comprising:
Module is set: arrange application and the corresponding relation of allocation list, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom;
Detection module: monitoring file modification action, responds keypress function corresponding to described button corresponding event response code KEY_DOWN;
Mapping block: system application switches, the allocation list loading the application after current switching to system by key map;
Search module: search the corresponding keypress function key assignments of described button;
Distribution module: the described button value event mapped is distributed to upper strata.
Further, described key configurations table changes corresponding described button value.
Further, described button value is dynamic change.
Want of the present invention according to right and realize button customizing method and system, root, for different application, redefines the key assignments of physical button, according to button, there is dynamic change key assignments, realize the multiplexing function of button, improve the utilization rate of button, improve user's experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, and together with embodiments of the present invention, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is according to the flow chart realizing button customizing method of the present invention;
Fig. 2 is according to the self-defining system block diagram of button that realizes of the present invention;
Fig. 3 is the flow chart of case mapping table detection according to an embodiment of the invention;
Fig. 4 is the flow chart of button value conversion process according to an embodiment of the invention;
Fig. 5 a-5g is particular flow sheet according to an embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is according to the flow chart realizing button customizing method of the present invention, comprises the following steps:
Step 101, arranges application and the corresponding relation of allocation list, sets up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom;
Step 102, the action of monitoring file modification, responds keypress function corresponding to described button corresponding event response code KEY_DOWN;
Step 103, system application switches, the allocation list loading the application after current switching to system by key map;
Step 104, searches the corresponding keypress function key assignments of described button;
The described button value event mapped is distributed to upper strata by step 105.
Further, described key configurations table changes corresponding described button value.
Further, described button value is dynamic change.
Fig. 2 is according to the block diagram realizing the self-defining system of button of the present invention, it realizes the self-defining system 200 of button and comprises: arrange module 201: arrange application and the corresponding relation of allocation list, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom; Detection module 202: monitoring file modification action, responds keypress function corresponding to described button corresponding event response code KEY_DOWN; Mapping block 203: system application switches, the allocation list loading the application after current switching to system by key map; Search module 204: search the corresponding keypress function key assignments of described button; Distribution module 205: the described button value event mapped is distributed to upper strata.
Further, described key configurations table changes corresponding described button value.
Further, described button value is dynamic change.
Fig. 3 is the flow chart of case mapping table detection according to an embodiment of the invention, comprises the following steps:
Step 301, has started, and records acquiescence key configurations table.
Step 302, user is switched to new opplication.
Step 303, judges whether the application of current switching configures mapping table, if the application of current switching has configuration mapping table, then enters step 304; If the application of current switching without configuration mapping table, then returns 302, continue operation.
Step 304, the system that arranges is current application allocation list by key map, returns step 302.
Fig. 4 is the flow chart of button value conversion process according to an embodiment of the invention, comprises the following steps:
Step 401, system wait incoming event.
Step 402, has incoming event to occur, and reads event.
Step 403, determines whether required key-press event, if be judged as YES, then enters step 404; If be judged as NO, then enter step 407.
Step 404, obtains the original scan code of physical button.
Step 405, has judged whether mapping relations, if be judged as mapping relations, then enters step 406; If judge without mapping relations, then return step 401.
Step 406, changes corresponding key assignments according to allocation list.
Step 407, Distribution Events is to upper layer application.
Fig. 5 a-5g is particular flow sheet according to an embodiment of the invention, and its idiographic flow comprises:
Fig. 5 a is the application that current system is installed.
Fig. 5 b is the original physical button value of system, and the numbering in its figure is as follows:
1. in physical button, (DPAD_UP) 5. physical button mountain (BUTTON_X)
2. the physical button right side (DPAD_RIGHT) 6. physical button water (BUTTON_Y)
3. a physical button left side (DPAD_LEFT) 7. physical button day (BUTTON_A)
4. (DPAD_DOWN) 8. physical button moon (BUTTON_B) under physical button
Fig. 5 c is that physical button 1 maps key assignments, and user arranges the allocation list of application 1 shown in Fig. 5 a, can configure independent key assignments for each physical button.Its corresponding diagram 5c, after user is provided with, mapping table is as follows:
1. in physical button, (MENU) 5. physical button mountain (BUTTON_START)
2. the physical button right side (HOME) 6. physical button water (BUTTON_SELECT)
3. a physical button left side (BACK) 7. physical button day (VOLUME_UP)
4. (FOCUS) 8. physical button moon (VOLUME_DOWN) under physical button
Fig. 5 d is application change detection, and when user enters application 1 from application m, systems axiol-ogy switches to application.
Fig. 5 e is that Fig. 5 d systems axiol-ogy switches to application, the case mapping table of system is changed to the allocation list of application 1 shown in Fig. 5 a by the allocation list applying m shown in Fig. 5 d.
Fig. 5 f is the allocation list embodiment of application 1 shown in Fig. 5 a.
Fig. 5 g is physical button distribution flow, and SO1 is transfer process, and when physical button s is in physical button, after conversion, key assignments s1 is MENU, thus upper layer application 1 obtains and processes the event that MENU presses.This idiographic flow comprises: first, and in kernel, when physical button is pressed, produce incoming event A, scan code is s; Secondly, system framework, reads event A, searches corresponding allocation list obtain key assignments s1, s->s1 according to scan code s, distribution key assignments s1; Finally, in application 1, application process key assignments s1.
Application and the corresponding relation of allocation list are set, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom; The action of monitoring file modification, responds keypress function corresponding to described button corresponding event response code KEY_DOWN; System application switches, the allocation list loading the application after current switching to system by key map; Search the corresponding keypress function key assignments of described button; The described button value event mapped is distributed to upper strata.The present invention is directed to different application, redefine the key assignments of physical button, there is according to button the characteristic of dynamic change value, realize the multiplexing function of button, improve the utilization rate of button, improve Consumer's Experience.
One of ordinary skill in the art will appreciate that: the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme that foregoing embodiments is recorded, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. realize the self-defining method of button, it is characterized in that, comprise the following steps:
1) application and the corresponding relation of allocation list are set, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom;
2) monitor file modification action, respond keypress function corresponding to described button corresponding event response code KEY_DOWN;
3) system application switches, the allocation list loading the application after current switching to system by key map;
4) the corresponding keypress function key assignments of described button is searched;
5) the described button value event mapped is distributed to upper strata.
2. according to claim 1ly realize the self-defining method of button, it is characterized in that, described key configurations table changes corresponding described button value.
3. according to claim 2ly realize the self-defining method of button, it is characterized in that, described button value is dynamic change.
4. according to claim 1ly realize the self-defining method of button, it is characterized in that, described key configurations table changes corresponding described button value.
5. according to claim 4ly realize the self-defining method of button, it is characterized in that, described button value is dynamic change.
6. realize the self-defining system of button, it is characterized in that, comprising:
Module is set: arrange application and the corresponding relation of allocation list, set up the relation of the button answer code KEY_DOWN corresponding with the event of operating system bottom;
Detection module: monitoring file modification action, responds keypress function corresponding to described button corresponding event response code KEY_DOWN;
Mapping block: system application switches, the allocation list loading the application after current switching to system by key map;
Search module: search the corresponding keypress function key assignments of described button;
Distribution module: the described button value event mapped is distributed to upper strata.
CN201510704389.2A 2015-10-27 2015-10-27 Method and system for realizing key self definition Pending CN105407216A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510704389.2A CN105407216A (en) 2015-10-27 2015-10-27 Method and system for realizing key self definition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510704389.2A CN105407216A (en) 2015-10-27 2015-10-27 Method and system for realizing key self definition

Publications (1)

Publication Number Publication Date
CN105407216A true CN105407216A (en) 2016-03-16

Family

ID=55472457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510704389.2A Pending CN105407216A (en) 2015-10-27 2015-10-27 Method and system for realizing key self definition

Country Status (1)

Country Link
CN (1) CN105407216A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502429A (en) * 2016-09-13 2017-03-15 中国电子科技集团公司第三十二研究所 IO (input/output) reconfigurable system and method of intelligent mobile terminal
CN106843690A (en) * 2017-01-22 2017-06-13 苏州蜗牛数字科技股份有限公司 A kind of press keys setup method of Android game mobile phones
CN107094238A (en) * 2017-04-13 2017-08-25 青岛海信电器股份有限公司 The key assignments processing method and intelligent television of intelligent television
CN107707755A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Button application method, terminal and computer-readable recording medium
CN108322797A (en) * 2017-01-16 2018-07-24 阿里巴巴集团控股有限公司 A kind of response of key assignments and response configuration method, device, the device and operating system
CN109690481A (en) * 2016-09-23 2019-04-26 苹果公司 The customization of dynamic function row
CN110032412A (en) * 2019-02-28 2019-07-19 努比亚技术有限公司 A kind of key-press input control method, terminal and computer readable storage medium
CN111078024A (en) * 2018-10-19 2020-04-28 昆盈企业股份有限公司 Method for dynamically adjusting keyboard output signal
CN112399213A (en) * 2019-08-18 2021-02-23 海信视像科技股份有限公司 Display device and remote controller key multiplexing method
CN117348779A (en) * 2023-10-13 2024-01-05 深圳市大我云读写科技有限公司 Function key mapping method, device, equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080198044A1 (en) * 2007-02-15 2008-08-21 Asustek Computer Inc. Computer and method for processing keyboard input thereof
CN101419508A (en) * 2008-12-11 2009-04-29 深圳华为通信技术有限公司 Input device and terminal equipment
CN101751249A (en) * 2008-12-09 2010-06-23 纬创资通股份有限公司 Keyboard translation method for operating system and relevant device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080198044A1 (en) * 2007-02-15 2008-08-21 Asustek Computer Inc. Computer and method for processing keyboard input thereof
CN101751249A (en) * 2008-12-09 2010-06-23 纬创资通股份有限公司 Keyboard translation method for operating system and relevant device thereof
CN101419508A (en) * 2008-12-11 2009-04-29 深圳华为通信技术有限公司 Input device and terminal equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502429A (en) * 2016-09-13 2017-03-15 中国电子科技集团公司第三十二研究所 IO (input/output) reconfigurable system and method of intelligent mobile terminal
CN109690481B (en) * 2016-09-23 2022-09-13 苹果公司 Method and apparatus for dynamic function row customization
CN109690481A (en) * 2016-09-23 2019-04-26 苹果公司 The customization of dynamic function row
CN108322797A (en) * 2017-01-16 2018-07-24 阿里巴巴集团控股有限公司 A kind of response of key assignments and response configuration method, device, the device and operating system
CN106843690A (en) * 2017-01-22 2017-06-13 苏州蜗牛数字科技股份有限公司 A kind of press keys setup method of Android game mobile phones
WO2018133499A1 (en) * 2017-01-22 2018-07-26 苏州蜗牛数字科技股份有限公司 Button setting method of android gaming mobile phone
CN107094238A (en) * 2017-04-13 2017-08-25 青岛海信电器股份有限公司 The key assignments processing method and intelligent television of intelligent television
CN107707755A (en) * 2017-09-28 2018-02-16 努比亚技术有限公司 Button application method, terminal and computer-readable recording medium
CN107707755B (en) * 2017-09-28 2020-12-22 努比亚技术有限公司 Key using method, terminal and computer readable storage medium
CN111078024A (en) * 2018-10-19 2020-04-28 昆盈企业股份有限公司 Method for dynamically adjusting keyboard output signal
CN110032412A (en) * 2019-02-28 2019-07-19 努比亚技术有限公司 A kind of key-press input control method, terminal and computer readable storage medium
CN112399213A (en) * 2019-08-18 2021-02-23 海信视像科技股份有限公司 Display device and remote controller key multiplexing method
CN112399213B (en) * 2019-08-18 2022-11-22 海信视像科技股份有限公司 Display device and remote controller key multiplexing method
CN117348779A (en) * 2023-10-13 2024-01-05 深圳市大我云读写科技有限公司 Function key mapping method, device, equipment and computer readable storage medium
CN117348779B (en) * 2023-10-13 2024-07-09 深圳市大我云读写科技有限公司 Function key mapping method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105407216A (en) Method and system for realizing key self definition
CN100556092C (en) A kind of method and system of self-defining press-key function of remote controller
CN100359460C (en) Planning scheme of electronic device with multiple display screen parallel
KR101430519B1 (en) Mobile terminal and Method for processing applications in idle screen of the mobile terminal
CN103677989B (en) A kind of utilization linux kernel realizes the device and method of multisystem
CN104077017B (en) A kind of electronic equipment and control method
CN102595537B (en) A kind of method of handover network access point, device and terminal
CN102970413B (en) Operation method of smart phone
CN102420911A (en) Switching device and switching method for dual systems of smart phone
CN103218128A (en) Method of displaying graphic user interface using time difference and terminal supporting the same
CN103648036A (en) Arrangement method and arrangement apparatus of necessary arrangement items of intelligent television
CN103491434B (en) A kind of application programe switch-over method of Set Top Box based on Android
CN101834925B (en) Method and system for configuring key function of terminal
CN104333814A (en) Smart television desktop switching method and smart television
CN105100915A (en) Method and television for switching audio video application
CN101662527B (en) Method and system for activating application program of mobile phone
CN103135934A (en) Touch-screen mobile device and method and device for switching application program quickly
CN102184013A (en) Input method between electronic equipment and corresponding electronic equipment
CN105204814A (en) Sound card switching method and system of Android system
CN103916545A (en) Status switching method and electronic device
CN103561342A (en) Method and device for tabletop switch of smart television and smart television
CN103686356A (en) Method and device for adjusting key values
CN104536823A (en) Shortcut operation method, shortcut operation device and terminal
CN105653304A (en) Method for switching operation mode, device for switching operation mode, and terminal
CN106412629A (en) Media data transmission processing method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316