An information processing method, which is applied in an electronic device,
- the electronic device including a processor, a sensor, a first body, a second body, a connector for connecting the first body and the second body, and a damping apparatus, wherein an application program is loaded into the electronic device, the first body is movable relative to the second body, a state of a relative position between the first body and the second body comprises an open state and a closed state and the connector comprises a first rotational structure, a support body and a second rotational structure connected sequentially, the first rotational structure being adapted to connect the first body to a first end of the support body, and the second rotational structure being adapted to connect the second body to a second end of the support body;
- the information processing method comprising:
- obtaining a determination parameter in response to the state of the relative position between the first body and the second body being the open state, wherein the determination parameter is adapted to determine whether to start the sensor;
- enabling the sensor in response to the determination parameter meeting a predetermined condition;
- obtaining a variation by the sensor, wherein the variation represents an offset between a first position of the first body relative to the second body and a second position to which the first body moves relative to the second body under an external force when the state of the relative position between the first body and the second body is the open state;
- controlling a display parameter of a controlled object in the application program and/or a display parameter of a display environment of the controlled object in the application program by changing an angle formed between the first body and the second body,
- wherein the application program comprises a game program, a music program, movie program, a drawing program, or an office program;
- and
- wherein the application program controls applying a force to the first body and the support body to restore an angle formed between the first body and the support body to a preset angle, wherein the angle formed between the first body and the support body is not equal to the preset angle, wherein the preset angle is within a predetermined range, when the angle formed between the first body and the support body is within the predetermined range, the application program is capable of establishing a relationship with the sensor, and when the angle formed between the first body and the support body is not within the predetermined range, the application program is not capable of establishing the relationship with the sensor, wherein when the angle formed between the first body and the support body is within the predetermined range, the application program is capable of obtaining the variation from the sensor, and when the angle formed between the first body and the support body is not within the predetermined range, the application program is not capable of obtaining the variation from the sensor.