CN106730820A - A kind of method and android terminal device for being adapted to various game paddles - Google Patents
A kind of method and android terminal device for being adapted to various game paddles Download PDFInfo
- Publication number
- CN106730820A CN106730820A CN201611139567.2A CN201611139567A CN106730820A CN 106730820 A CN106730820 A CN 106730820A CN 201611139567 A CN201611139567 A CN 201611139567A CN 106730820 A CN106730820 A CN 106730820A
- Authority
- CN
- China
- Prior art keywords
- handle
- event
- module
- button
- conversion
- 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
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/23—Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/10—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
- A63F2300/1025—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals details of the interface with the game device, e.g. USB version detection
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
A kind of method and android terminal device for being adapted to various game paddles, methods described is comprised the following steps:Handle event is sent to android terminal device;Receive the handle event and changed;By in handle case distribution to the system after conversion;The handle event after the conversion is received, and is adjusted back.The android terminal device, including, handle interface module(210), button adaptation module(220), and application module(230).The method and android terminal device of the various game paddles of adaptation of the invention, realizing same android terminal device can be adapted to different game paddles, and whether the handle that user uses without having to worry about oneself can operate game.
Description
Technical field
The present invention relates to a kind of android terminal device, more particularly to a kind of method for being adapted to various game paddles and
Android terminal device.
Background technology
Handle at present on the market is uneven, and handle key response function out is also each different, a game
Handle is applied to a kind of fit standard, and different game can support different fit standards, if the suitable of the handle is supported in game
With standard, then the key assignments of game paddle button can form corresponding relation with the position of touch of game function button, this game
Can be operated by the game paddle;Otherwise, if the fit standard of the handle, the key of game paddle button are not supported in game
Value can not form corresponding relation with the position of touch of game function button, and game client can not find corresponding according to key assignments
Position of touch, this game can not be operated by the game paddle, can so cause partial game to need to use difference
Handle could use, therefore can be to player using above bringing many puzzlement inconvenience.
The content of the invention
Present invention seek to address that because all kinds of handle key assignments differentiation cause awkward problem.It is of the invention main with plug-in unit
The mode of program is present in system, and whether user can be grasped by using the handle that the program can be used without having to worry about oneself
Play games.
In order to solve the deficiency of prior art presence, it is an object of the invention to provide a kind of various game paddles of adaptation
Method and android terminal device, realize that same android terminal device can be adapted to different game paddles.
To achieve the above object, the method for the various game paddles of adaptation that the present invention is provided, comprises the following steps:
(1)Handle event is sent to android terminal device;
(2)Receive the handle event and changed;
(3)By in handle case distribution to the system after conversion;
(4)The handle event after the conversion is received, and is adjusted back.
Wherein, the handle event is and rocking bar, button or touches the corresponding event of three generic operations.
Further, step(2)Described changes to handle event, is that the attribute of the handle event is repaiied
Change, complete the conversion to the handle event;Wherein, including, button turn button, rocking bar turn touch and button turn touch.
Further, step(4)Handle event after the conversion is adjusted back, be by onKey or/and
OnMotionEvent methods are adjusted back to the handle event after conversion.
To achieve the above object, the invention allows for a kind of android terminal device, including, handle interface module
(210), button adaptation module(220), and application module(230), wherein,
The handle interface module(210), handle event is received, and the handle event is passed into the button adaptation module
(220);
The button adaptation module(220), it receives the handle interface module(210)The handle event of transmission is simultaneously carried out
Conversion, then by the handle case distribution after the conversion to the application module(230)
The application module(230)Receive the button adaptation module(220)Handle event after the conversion for sending, goes forward side by side
Row readjustment.
Further, the button adaptation module(220)Including:Event modular converter(221)And case distribution module
(222), wherein,
The event modular converter(221), the attribute to the handle event modifies, and completion turns to the handle event
Change, wherein, translation type mainly has button to turn turn touch of button, rocking bar and button turn three classes of touch;
The case distribution module(222), it is by the handle case distribution after the conversion to the application module(230).
Further, the application module(230)Including:Event receiver module(231)And event call-back module
(232), wherein,
The event receiver module(231), receive the button adaptation module(220)Handle thing after the conversion of distribution
Part,
The event call-back module(232), it is by onKey or/and onMotionEvent methods to the handle after the conversion
Event is adjusted back.
The method and android terminal device of the various game paddles of adaptation of the invention, are sent by game paddle
The type of handle event changed, make game paddle in the case where key assignments need not be changed, completed from different game
Matching relationship, allows same game paddle to carry out matching operation to different game, realizes same Android terminal and sets
Standby to be adapted to different game paddles, whether the handle that user uses without having to worry about oneself can operate game, so as to expand
The use scope of game paddle, increased the use occasion of game paddle, player is being operated different game
During, possess a game paddle.
Other features and advantages of the present invention will be illustrated in the following description, also, the partly change from specification
Obtain it is clear that or being understood by implementing the present invention.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, and with it is of the invention
Embodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram according to the various game paddles of adaptation of the invention;
Fig. 2 is according to android terminal device theory diagram of the invention.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is the method flow diagram according to the various game paddles of adaptation of the invention, below with reference to Fig. 1, to the present invention
The method of the various game paddles of adaptation be described in detail.
First, in step 101, handle event is sent to android terminal device;
Wherein, handle event is mainly the event corresponding with three generic operations such as rocking bar, button and touch.
Specifically, rocking bar operation is divided into left rocker operation, rectangular coordinate system is set up with space where rocking bar, certain
Coordinate value scope(Such as [- 1,1])It is interior, the motion track of rocking bar.
Button operation is then the operation of pressing keys, and the event corresponding to button operation is identified by shaping numerical value.
Shaping numerical value includes:Upper and lower, left and right, A, B, X, Y, L1, L2, R1, R2 etc..
Touch operation is then the operation of the contact input units such as touch touch screen.
In step 102, receive handle event and changed.
In this step, in android system incident management mechanism, different event can be distributed to different queues and is led to
Processed in road.During distribution, the attribute to event is modified, so that the conversion of event is completed, wherein, conversion
Type mainly has button to turn, and button, rocking bar turn to touch and button turns to touch three classes.
Specifically, in distribution procedure, event attribute is distinguished using the attribute of ioctl functions acquisition equipment, therefore
Need to only be intercepted to event in event channel and be changed event attribute.The case distribution for completing can be changed afterwards to correspondingly
Queue in the middle of.
In step 103, by handle case distribution to the system after conversion.
In this step, the InputDispatcher modules of Android ccf layers arrive the handle case distribution after conversion
Among corresponding application program.Application program can be more than one, be built in same application layer.
In step 104, Android game receives the handle event after conversion.
In this step, Android plays by the handle event after the conversion that View modules are received in being distributed to system,
The handle event after two methods of onKey and onMotionEvent are to the conversion that receives is adjusted back again.
Fig. 2 is according to android terminal device theory diagram of the invention, as shown in Fig. 2 Android ends of the invention
End equipment, including, handle interface module 210, button adaptation module 220 and application module 230, wherein,
Handle interface module 210, it receives handle event, and handle event is passed into button adaptation module 220,
Handle event is mainly the event corresponding with three generic operations such as rocking bar, button and touch.
Specifically, rocking bar operation is divided into left rocker operation, rectangular coordinate system is set up with space where rocking bar, certain
Coordinate value scope(Such as [- 1,1])It is interior, the motion track of rocking bar.
Button operation is then the operation of pressing keys, and the event corresponding to button operation is identified by shaping numerical value.
Shaping numerical value includes:Upper and lower, left and right, A, B, X, Y, L1, L2, R1, R2 etc..
Touch operation is then the operation of the contact input units such as touch touch screen.
Button adaptation module 220, its handle event for receiving the end transmission of handle interface module 210 is simultaneously changed, then will
Handle case distribution after conversion to application module 230,
Further, button adaptation module 220 includes:Event modular converter 221 and case distribution module 222, wherein,
Event modular converter 221, its attribute to handle event is modified, so that the conversion of handle event is completed, wherein, turn
Changing type mainly has button to turn turn touch of button, rocking bar and button turn three classes of touch.
Specifically, in android system incident management mechanism, different event can be distributed to different queue passages
In processed.During distribution, the attribute to event is modified, so as to complete the conversion of event.In distribution procedure
In, event attribute is distinguished using the attribute of ioctl functions acquisition equipment, therefore event need to only be blocked in event channel
Cut and change event attribute.To can change in the middle of case distribution to the corresponding queue for completing afterwards.
Case distribution module 222, it is by the handle case distribution after conversion to application module 230.
Wherein, application module 230 may include:Android game application modules.Specifically, case distribution module 222 will
Handle case distribution after conversion is among corresponding application module.Application module can be more than one, be built in same answering
With in layer.
Application module 230 includes:Event receiver module 231 and event call-back module 232, wherein,
Event receiver module 231, application module 230 receives turning for the distribution of case distribution module 222 by event receiver module 231
Handle event after changing,
Event call-back module 231, the conversion received by onKey or/and onMotionEvent methods application modules 230
Handle event afterwards is adjusted back.
The method and android terminal device of the various game paddles of adaptation of the invention, are sent by game paddle
The type of handle event changed, make game paddle in the case where key assignments need not be changed, completed from different game
Matching relationship, allows same game paddle to carry out matching operation to different game, so as to expand the use of game paddle
Scope, increased the use occasion of game paddle, make player during being operated to different game, possess a trip
Play handle.
One of ordinary skill in the art will appreciate that:The foregoing is only the preferred embodiments of the present invention, and without
In the limitation present invention, although being described in detail to the present invention with reference to the foregoing embodiments, for those skilled in the art
For, it can still be modified to the technical scheme that foregoing embodiments are recorded, or which part technical characteristic is entered
Row equivalent.All any modification, equivalent substitution and improvements within the spirit and principles in the present invention, made etc., all should include
Within protection scope of the present invention.
Claims (6)
1. a kind of method for being adapted to various game paddles, it is characterised in that comprise the following steps:
(1)Handle event is sent to android terminal device;
(2)Receive the handle event and changed;
(3)By in handle case distribution to the system after conversion;
(4)The handle event after the conversion is received, and is adjusted back;
Wherein, the handle event is and rocking bar, button or the corresponding event of touch operation.
2. the method for various game paddles is adapted to according to claim 1, it is characterised in that step(2)It is described to handle
Event is changed, and is that the attribute of the handle event is modified, and completes the conversion to the handle event;Wherein, wrap
Include, button turns button, rocking bar and turns to touch and button turn touch.
3. the method for various game paddles is adapted to according to claim 1, it is characterised in that step(4)After the conversion
Handle event is adjusted back, and is that the handle event after conversion is adjusted back by onKey or/and onMotionEvent methods.
4. a kind of android terminal device, it is characterised in that including handle interface module(210), button adaptation module
(220), and application module(230), wherein,
The handle interface module(210), it receives handle event, and the handle event is passed into the button adaptation mould
Block(220);
The button adaptation module(220), it receives the handle interface module(210)The handle event of transmission is simultaneously carried out
Conversion, then by the handle case distribution after the conversion to the application module(230)
The application module(230), it receives the button adaptation module(220)Handle event after the conversion for sending,
And adjusted back.
5. android terminal device according to claim 4, it is characterised in that the button adaptation module(220)Bag
Include:Event modular converter(221)And case distribution module(222), wherein,
The event modular converter(221), the attribute to the handle event modifies, and completion turns to the handle event
Change, wherein, translation type turns to touch and button turn touch for button turns button, rocking bar;
The case distribution module(222), it is by the handle case distribution after the conversion to the application module(230).
6. android terminal device according to claim 4, it is characterised in that the application module(230)Including:Thing
Part receiver module(231)And event call-back module(232), wherein,
The event receiver module(231), it receives the button adaptation module(220)Handle thing after the conversion of distribution
Part,
The event call-back module(232), it is by onKey or/and onMotionEvent methods to the handle after the conversion
Event is adjusted back.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139567.2A CN106730820A (en) | 2016-12-12 | 2016-12-12 | A kind of method and android terminal device for being adapted to various game paddles |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139567.2A CN106730820A (en) | 2016-12-12 | 2016-12-12 | A kind of method and android terminal device for being adapted to various game paddles |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106730820A true CN106730820A (en) | 2017-05-31 |
Family
ID=58875595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611139567.2A Pending CN106730820A (en) | 2016-12-12 | 2016-12-12 | A kind of method and android terminal device for being adapted to various game paddles |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106730820A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108008992A (en) * | 2017-11-24 | 2018-05-08 | 南昌黑鲨科技有限公司 | One kind input operation processing method, processing unit and computer-readable recording medium |
CN109107148A (en) * | 2018-08-08 | 2019-01-01 | Oppo广东移动通信有限公司 | control method, device, storage medium and mobile terminal |
CN109432767A (en) * | 2018-11-15 | 2019-03-08 | 深圳市七熊科技有限公司 | A kind of exchange method and system of game paddle and terminal |
CN110270087A (en) * | 2019-07-05 | 2019-09-24 | 深圳市七熊科技有限公司 | The game control method and its device of game paddle rocking bar on the mobile terminal device |
CN111840990A (en) * | 2020-07-21 | 2020-10-30 | 联想(北京)有限公司 | Input control method and device and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915117A (en) * | 2012-10-30 | 2013-02-06 | 苏州运智互动科技有限公司 | Method for realizing plug-and-play somatosensory handle in Android system |
CN103272382A (en) * | 2013-05-23 | 2013-09-04 | 深圳市时讯互联科技有限公司 | Method and device for using Bluetooth gamepad to simulate intelligent terminal touch screen to control game |
CN103316472A (en) * | 2013-05-17 | 2013-09-25 | 南京睿悦信息技术有限公司 | Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system |
CN104174162A (en) * | 2014-08-18 | 2014-12-03 | 上海腾目网络科技有限公司 | Game playing method and game playing device |
CN105477854A (en) * | 2014-12-19 | 2016-04-13 | 广州爱九游信息技术有限公司 | Handle control method, device and system applied in intelligent terminal |
CN105477857A (en) * | 2015-02-13 | 2016-04-13 | 广州爱九游信息技术有限公司 | Gamepad adapting method, device and system |
CN105786727A (en) * | 2014-12-22 | 2016-07-20 | 中兴通讯股份有限公司 | Method and device for compatibility between applications and peripherals |
-
2016
- 2016-12-12 CN CN201611139567.2A patent/CN106730820A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915117A (en) * | 2012-10-30 | 2013-02-06 | 苏州运智互动科技有限公司 | Method for realizing plug-and-play somatosensory handle in Android system |
CN103316472A (en) * | 2013-05-17 | 2013-09-25 | 南京睿悦信息技术有限公司 | Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system |
CN103272382A (en) * | 2013-05-23 | 2013-09-04 | 深圳市时讯互联科技有限公司 | Method and device for using Bluetooth gamepad to simulate intelligent terminal touch screen to control game |
CN104174162A (en) * | 2014-08-18 | 2014-12-03 | 上海腾目网络科技有限公司 | Game playing method and game playing device |
CN105477854A (en) * | 2014-12-19 | 2016-04-13 | 广州爱九游信息技术有限公司 | Handle control method, device and system applied in intelligent terminal |
CN105786727A (en) * | 2014-12-22 | 2016-07-20 | 中兴通讯股份有限公司 | Method and device for compatibility between applications and peripherals |
CN105477857A (en) * | 2015-02-13 | 2016-04-13 | 广州爱九游信息技术有限公司 | Gamepad adapting method, device and system |
Non-Patent Citations (1)
Title |
---|
韩超,梁泉: "《Android***级深入开发——移植与调试》", 28 February 2011 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108008992A (en) * | 2017-11-24 | 2018-05-08 | 南昌黑鲨科技有限公司 | One kind input operation processing method, processing unit and computer-readable recording medium |
CN108008992B (en) * | 2017-11-24 | 2020-08-18 | 南昌黑鲨科技有限公司 | Input operation processing method, processing device and computer readable storage medium |
CN109107148A (en) * | 2018-08-08 | 2019-01-01 | Oppo广东移动通信有限公司 | control method, device, storage medium and mobile terminal |
CN109107148B (en) * | 2018-08-08 | 2022-04-19 | Oppo广东移动通信有限公司 | Control method, control device, storage medium and mobile terminal |
CN109432767A (en) * | 2018-11-15 | 2019-03-08 | 深圳市七熊科技有限公司 | A kind of exchange method and system of game paddle and terminal |
CN110270087A (en) * | 2019-07-05 | 2019-09-24 | 深圳市七熊科技有限公司 | The game control method and its device of game paddle rocking bar on the mobile terminal device |
CN111840990A (en) * | 2020-07-21 | 2020-10-30 | 联想(北京)有限公司 | Input control method and device and electronic equipment |
CN111840990B (en) * | 2020-07-21 | 2022-08-19 | 联想(北京)有限公司 | Input control method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106730820A (en) | A kind of method and android terminal device for being adapted to various game paddles | |
CN105072482B (en) | The control method for playing back and device of a kind of multimedia play equipment | |
CN103218165B (en) | A kind of method, device and mobile terminal changing key arrangement | |
WO2004064277A3 (en) | Video network | |
CN103442279B (en) | A kind of based on Set Top Box and the interactive system of intelligent television and method | |
US10187138B2 (en) | Relaying device, audio communication system, and audio signal relay method | |
WO2005076889A3 (en) | Generic client for communication devices | |
CN103491409A (en) | Multi-screen control system, realizing method of multi-screen control system and remote controllers | |
CN104394449B (en) | A kind of method and system of the more equipment of single remote control control | |
CN103607779A (en) | Multi-screen coordination intelligent input system and realization method thereof | |
CN102306052A (en) | Intelligent input method for automatically identifying input equipment | |
CN104703013A (en) | Operation method and device for remote control for set top box | |
CN104333650A (en) | Screen sharing method, system and mobile terminal | |
WO2006039702A3 (en) | Interface, circuit and method for interfacing with an electronic device | |
CN202282066U (en) | Wireless control device for family multimedia entertainment equipment and family entertainment system | |
CN106310656A (en) | Method of game control using VR joystick | |
CN107205286B (en) | A kind of RCC, RRS and distributed base station system | |
CN103299298A (en) | Service processing method and system | |
WO2004077282A3 (en) | Simplified user interface for an image capture device | |
CN101201698A (en) | Method and system for processing signal | |
JP2007243864A (en) | Communication terminal apparatus, communication method, and program | |
CN102760034A (en) | Method and equipment of interaction of multiple windows of display device | |
CN102111467A (en) | Mobile phone and key detection device thereof | |
CN102291546A (en) | Method for increasing usability of family audiovisual system | |
CN104461333A (en) | Switching method of multiple desktop starters |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170531 |
|
RJ01 | Rejection of invention patent application after publication |