Method and system for controlling mobile phone game based on mobile phone distance sensor

The invention provides a method and a system for controlling a mobile phone game based on a mobile phone distance sensor. The method comprises the following steps: starting a mobile phone game process, when the distance sensor detects a shielding signal, uploading the shielding signal to a mobile ph...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: LIU TAIFU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method and a system for controlling a mobile phone game based on a mobile phone distance sensor. The method comprises the following steps: starting a mobile phone game process, when the distance sensor detects a shielding signal, uploading the shielding signal to a mobile phone hardware abstraction layer, carrying out data package on the shielding signal and uploading the shielding signal to a jni layer in a mobile phone user layer by the mobile phone hardware abstraction layer, and uploading the packaged shielding signal to a java data layer by the jni layer; and setting at least one key instruction according to the shielding signal uploaded by the java data, and implementing corresponding control and operation of the game process according to the key instruction. By adopting the method provided by the invention, various operation controls of a game are implemented by shielding the distance sensor in combination with different shielding times, therefore the operation is more convenie