Method and system for determining input axis, and computer readable storage medium

TW202640351AActive Publication Date: 2026-10-01HTC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
TW114130641
Authority / Receiving Office
TW · TW
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-03-20
Filing Date
2025-08-12
Publication Date
2026-10-01
Estimated Expiration
2045-08-11

Smart Images

  • Figure TWG2TA001078260_001
    Figure TWG2TA001078260_001
  • Figure TWG2TA001078260_002
    Figure TWG2TA001078260_002
  • Figure TWG2TA001078260_003
    Figure TWG2TA001078260_003
Patent Text Reader

Abstract

The embodiments of the disclosure provide a method and system for determining an input axis, and a computer readable storage medium. The method includes: determining, by a peripheral device or a host, a first reference direction of the host, wherein the peripheral device has an input device, the peripheral device is connected with the host, and the host has a display; determining, by the peripheral device or the host, a first input axis associated with the input device on the peripheral device based on the first reference direction; in response to determining that a first input operation is detected by the input device, transforming, by the peripheral device or the host, the first input operation into a first input event relative to the first input axis; and controlling, by the peripheral device or the host, visual content displayed by the display of the host based on the first input event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a technique for determining an input mechanism, and more particularly to a method, system, and computer-readable storage medium for determining an input axis. Prior Technology

[0002] Wearable smart devices often have inherent structural limitations that may restrict the flexibility of how they are worn. This problem is particularly evident in ring-type accessories, where it is difficult to maintain a fixed orientation or position during natural use. Consequently, such devices may unintentionally deviate from their intended alignment, leading to deviations in operational and input accuracy.

[0003] Therefore, from the perspective of someone with common knowledge in the relevant technical field, a technical solution that can dynamically adapt to the user's immediate wearing position or habitual orientation would be very beneficial. Summary of the Invention

[0004] Therefore, the present invention relates to a method and system for determining an input axis, and a computer-readable storage medium, which can be used to solve the above-mentioned technical problems.

[0005] Embodiments of the present invention provide a method for determining an input axis. The method includes: determining a first reference direction of a host computer by a peripheral device or a host computer, wherein the peripheral device has an input device, the peripheral device is connected to the host computer, and the host computer has a display; determining a first input axis corresponding to the input device on the peripheral device according to the first reference direction by the peripheral device or the host computer; in response to the determination that the input device detects a first input operation, converting the first input operation into a first input event relative to the first input axis by the peripheral device or the host computer; and controlling the visual content displayed by the display of the host computer according to the first input event by the peripheral device or the host computer.

[0006] Embodiments of the present invention provide a system for determining an input axis, comprising a host and a peripheral device. The host has a display. The peripheral device is connected to the host. The peripheral device or the host determines a first reference direction of the host, wherein the peripheral device has an input device, the peripheral device is connected to the host, and the host has a display. Based on the first reference direction, the peripheral device or the host determines a first input axis corresponding to the input device on the peripheral device. In response to the determination that the input device detects a first input operation, the peripheral device or the host converts the first input operation into a first input event relative to the first input axis. Based on the first input event, the peripheral device or the host controls the visual content displayed on the host's display.

[0007] Embodiments of the present invention provide a computer-readable storage medium recording an executable computer program. The executable computer program is loaded by a peripheral device or a host to perform the following steps: determining a first reference direction of the host, wherein the peripheral device has an input device, the peripheral device is connected to the host, and the host has a display; determining a first input axis corresponding to the input device on the peripheral device according to the first reference direction; in response to the determination that the input device detects a first input operation, converting the first input operation into a first input event relative to the first input axis; and controlling the visual content displayed on the display of the host according to the first input event. Simple Explanation of the Diagram

[0008] Figure 1 illustrates a schematic diagram of a system according to an embodiment of the present invention. Figure 2 illustrates a flowchart of a method for determining an input axis according to an embodiment of the present invention. Figure 3 illustrates a schematic diagram of determining the first input axis associated with the input device based on a first reference direction according to a first embodiment of the present invention. Figures 4A and 4B illustrate further schematic diagrams of the first input shaft associated with the input device, determined according to the first reference direction in Figure 3. Figure 5 illustrates a schematic diagram of the correction process according to a second embodiment of the present invention. Figure 6 illustrates a schematic diagram of the correction process according to a third embodiment of the present invention. Implementation

[0009] Please refer to Figure 1, which illustrates a schematic diagram of a system according to an embodiment of the present invention. In various embodiments, the system 100 includes at least a host 11 and peripheral devices 12.

[0010] In some embodiments, host 11 may be any smart device and / or computer device capable of providing visual content for reality services, such as virtual reality (VR) services, augmented reality (AR) services, mixed reality (MR) services, and / or extended reality (XR) services, but the invention is not limited thereto. In some embodiments, host 11 may be a head-mounted display (HMD) capable of displaying / providing visual content (e.g., AR / VR / MR content) for the wearer / user to view.

[0011] In one embodiment, the host 11 may be equipped with a (built-in) display 112 for displaying visual content for a user to view. Alternatively, the host 11 may be connected to one or more external displays, and the host 11 may transmit visual content to the external displays for display, but the invention is not limited thereto.

[0012] In some embodiments, the host may include storage circuitry and a processor. The storage circuitry is one or a combination of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, hard disk, or any other similar device, and stores multiple modules executable by the processor.

[0013] The processor can be coupled to the storage circuit, and the processor can be, for example, a general-purpose processor, a special-purpose processor, a traditional processor, a digital signal processor (DSP), multiple microprocessors, one or more microprocessors combined with a DSP core, a controller, a microcontroller, an application-specific integrated circuit (ASIC), a programmable gate array (FPGA) circuit, any other type of integrated circuit (IC), a state machine, a graphics processing unit (GPU), etc.

[0014] In some embodiments, peripheral device 12 may refer to, for example, external hardware components that enhance the functionality, interactivity, and immersion of the XR experience. Peripheral device 12 may include a handheld controller that allows a user to interact with virtual objects via hand tracking or button input; haptic gloves or suits that provide haptic feedback for a more immersive experience. In other embodiments, peripheral device 12 may include various wearable devices, such as smart rings, smartwatches, fitness trackers, smart insoles, haptic shoes, gesture-controlled armbands, smart clothing, etc., but the invention is not limited thereto.

[0015] In this embodiment, the host 11 can connect to the peripheral device 12 in various ways, including wired connections such as HDMI, USB, or DisplayPort for image signal, data transmission, and power supply; or wireless connections such as Bluetooth or Wi-Fi, allowing peripheral devices such as controllers, haptic gloves, or headphones to move freely without cable restrictions. Dedicated radio frequency (RF) connections can be used for low-latency communication with external tracking systems or motion capture devices. Some peripheral devices can also connect via USB or proprietary connectors for data and power transmission, while infrared (IR) or optical sensors enable precise motion tracking between the HMD and peripheral devices. Furthermore, near field communication (NFC) can facilitate proximity-based interactions such as between a smart ring and the HMD.

[0016] As shown in Figure 1, the peripheral device 12 includes an input device 122 that allows a user to perform input operations. In various embodiments, the input device 122 may include at least one of the following: buttons and joysticks, touchpads and touchscreens, tactile and pressure sensors, gesture recognition sensors, voice input microphones, and biometric sensors, but the invention is not limited thereto.

[0017] In one embodiment, the input device 122 may be an Optical Finger Navigation (OFN) circuit. An OFN circuit is a system that uses an optical sensor to detect finger movement, similar to an optical mouse. It includes: an optical sensor (CMOS or CCD) for capturing images of the finger surface; an LED or infrared light source for illumination; an image processing unit (MCU / ASIC) for analyzing texture patterns and calculating motion vectors; a communication interface (such as I²C, SPI, or USB) for data transmission; and a power management unit for efficient power consumption. The system operates by continuously capturing images, comparing consecutive frames to detect displacement, calculating the direction and speed of movement, and transmitting the data to the main system to control cursor movement or scrolling operations, but the invention is not limited thereto.

[0018] In an embodiment of the present invention, system 100 can be used to execute the proposed input axis determination method, which will be described below.

[0019] Please refer to Figure 2, which illustrates a flowchart of an input axis determination method according to an embodiment of the present invention. The method can be executed by the host 11 or peripheral device 12 shown in Figure 1, and the details of each step in Figure 2 will be described in conjunction with the components in Figure 1.

[0020] In step S210, the peripheral device 12 or the host 11 determines the first reference direction of the host 11.

[0021] In one embodiment, the first reference direction is the forward direction that the host 11 is facing.

[0022] In different embodiments, the forward direction facing the host 11 can be determined by using various sensor-based tracking technologies, such as: inertial measurement unit (IMU) sensors, including gyroscopes, accelerometers, and magnetometers, to detect rotational motion, tilt, and absolute orientation; inside-out tracking relies on built-in cameras and depth sensors to analyze the environment; outside-in tracking uses external systems, such as lighthouse base stations or optical motion capture cameras, to track the position and orientation of the HMD; and Simultaneous Localization and Mapping (SLAM) algorithms are used to construct an environmental map and improve tracking accuracy, but the present invention is not limited thereto.

[0023] In other embodiments, the first reference direction may be another direction (e.g., left, right, or back) determined based on the attitude (e.g., position and rotation) of the host 11.

[0024] For ease of understanding, an example will be described using the forward direction facing the host 11 as the first reference direction, but the present invention is not limited thereto.

[0025] In step S220, the peripheral device 12 or the host 11 determines the first input axis associated with the input device on the peripheral device 12 according to the first reference direction.

[0026] In embodiments of the present invention, the term "input axis" can refer to a directional control parameter that measures movement along a specific coordinate axis. Such parameters are commonly used in joysticks, motion controllers, game controllers, and VR tracking systems. Two-dimensional input axes include the X-axis (left-right movement) and Y-axis (up-down movement) for navigation or camera control, while three-dimensional input axes add the Z-axis (forward-backward movement) for deeper interaction. Furthermore, rotation axes such as pitch (tilt up and down), yaw (turn left and right), and roll (tilt sideways) can also be used in XR environments to achieve complete rotational movements.

[0027] In an embodiment where the input device is an optical finger navigation circuit, the first input axis can be either the X-axis (also known as the horizontal input axis) or the Y-axis (also known as the vertical input axis), but the present invention is not limited thereto.

[0028] Please refer to Figure 3, which illustrates a schematic diagram of determining the first input axis associated with the input device based on a first reference direction according to a first embodiment of the present invention.

[0029] In Figure 3, it is assumed that the host 11 is an HMD, and the first reference direction DI1 is the front direction facing the host 11, which can also be regarded as the direction facing the front camera of the HMD. In addition, it is assumed that the peripheral device 12 connected to the host 11 is a smart ring worn on the user's hand, and the input device 122 on the peripheral device 12 is an OFN circuit.

[0030] In an embodiment, the peripheral device 12 or the host device 11 can determine the first reference direction DI1 as the positive direction of the first input shaft A1.

[0031] In Figure 3, for ease of understanding, the first input axis A1 can be assumed to be the vertical input axis. In this case, the positive direction of the first input axis A1 can be understood as the +Y direction in the coordinate system used by the input device 122, but the present invention is not limited thereto.

[0032] In one embodiment, once the first input axis A1 is determined, the peripheral device 12 or the host device 11 can determine the second input axis A2 associated with the input device 12 based on the first input axis A1.

[0033] In an embodiment where the first input shaft A1 is a vertical input shaft, the second input shaft A2 may be a horizontal input shaft associated with the input device 12.

[0034] In the scenario shown in Figure 3, once the first input axis A1 is determined, the peripheral device 12 or the host 11 can correspondingly determine the second input axis A2.

[0035] For example, in the case where the OFN circuit assumes that the user's input operation is received / detected through the sensing plane, the peripheral device 12 or the host 11 can determine the first input axis A1 on the sensing plane and rotate the positive direction of the first input axis A1 (e.g., 90 degrees) to determine the positive direction of the second input axis A2, but the present invention is not limited thereto.

[0036] Please refer to Figures 4A and 4B, which illustrate a further schematic diagram of the first input shaft associated with the input device as determined according to the first reference direction in Figure 3.

[0037] In Figure 4A, the peripheral device 12 or the host device 11 acquires the first gravity direction G1 detected by the host device 11 and the second gravity direction G2 detected by the peripheral device 12. In an embodiment, the first gravity direction G1 and / or the second gravity direction G2 can be measured by the IMU on their respective devices, but the present invention is not limited thereto.

[0038] Next, the peripheral device 12 or the host device 11 determines the first relative position between the first reference direction DI1 and the first gravity direction G1. For example, the first relative position can be represented by the angle difference AN1 between the first reference direction DI1 and the first gravity direction G1 on a certain plane, but the present invention is not limited thereto.

[0039] Subsequently, the peripheral device 12 or the host 11 determines the first input shaft A1 based on the first relative position and the second gravity direction G2, wherein the second relative position between the positive direction of the first input shaft A1 and the second gravity direction G2 corresponds to the first relative position between the first reference direction DI1 and the first gravity direction G1.

[0040] In the scenario shown in Figure 4A, the second relative position between the positive direction of the first input shaft A1 and the second gravity direction G2 can be represented by the angle difference AN1 corresponding to the first relative position on the same specific plane, but the present invention is not limited thereto.

[0041] Once the first input axis A1 is determined, the second input axis A2 can be determined accordingly. For details, please refer to the above description.

[0042] In one embodiment, in response to the determination that the first relative position or the second gravity direction G2 has changed, the peripheral device 12 or the host device 11 can update the first input shaft A1 according to the changed first relative position or the changed second gravity direction.

[0043] As can be seen in Figure 4B, compared to the situation in Figure 4A, the peripheral device 12 has rotated. This can be understood as the user wearing the peripheral device 12 in a different way (e.g., wearing it on different fingers / knuckles), causing the direction of gravity detected by the peripheral device 12 to change to the second direction of gravity G2'. However, the mechanism used to determine the corresponding first input axis A1 and second input axis A2 is the same.

[0044] For example, the peripheral device 12 or the host 11 obtains the first gravity direction G1' detected by the host 11 and the second gravity direction G2' detected by the peripheral device 12.

[0045] Next, the peripheral device 12 or the host device 11 determines the first relative position between the first reference direction DI1 and the first gravity direction G1'. For example, the first relative position can be represented by the angle difference AN2 between the first reference direction DI1 and the first gravity direction G1' on a specific plane, but the present invention is not limited thereto.

[0046] Subsequently, the peripheral device 12 or the host 11 determines the first input shaft A1 based on the first relative position and the second gravity direction G2', wherein the second relative position between the positive direction of the first input shaft A1 and the second gravity direction G2' corresponds to the first relative position between the first reference direction DI1 and the first gravity direction G1'.

[0047] Once the first input axis A1 is determined, the second input axis A2 can be determined accordingly. For details, please refer to the above description.

[0048] Returning to Figure 2, in step S230, in response to the detection of the first input operation by the input determination device 122, the peripheral device 12 or the host 11 converts the first input operation into a first input event relative to the first input axis A1.

[0049] In one embodiment, the first input operation can be a first sliding operation, which involves sliding a first distance along a first direction. In this case, the peripheral device 12 or the host device 11 can convert the first direction into a second direction relative to the first input axis A1.

[0050] Taking Figure 4A as an example, assume that the first sliding operation performed by the user is a forward sliding operation on the OFN circuit. That is, for the user, the first direction is the forward direction relative to the HMD. In this case, the peripheral device 12 or the host 11 can convert the first direction into a second direction relative to the first input axis A1, wherein the second direction in Figure 4A is the positive direction of the first input axis A1.

[0051] Taking Figure 4B as an example, assuming the first sliding operation performed by the user is still a forward sliding operation on the OFN circuit, the OFN circuit has rotated relative to the OFN circuit in Figure 4A. That is, for the user, the first direction is still the forward direction relative to the HMD. In this case, the peripheral device 12 or the main unit 11 can convert the first direction to a second direction relative to the first input axis A1, where the second direction in Figure 4A is still the positive direction of the first input axis A1, even though the OFN circuit has rotated.

[0052] As can be seen from Figures 4A and 4B, regardless of the position / rotation of the peripheral device 12, as long as the first direction of the first sliding operation (e.g., the forward direction relative to the user) is the same relative to the host 11 / user, the second direction obtained after conversion will also be the same.

[0053] From another perspective, users can operate the peripheral device 12 in the same way under different positions / rotations to achieve the same input operation, thereby improving the ease of use of the peripheral device 12.

[0054] After obtaining the second direction, the peripheral device 12 or the host 11 can map the first distance to a second distance relative to the first input axis A1. In an embodiment where the input device 122 is an OFN circuit, the peripheral device 12 or the host 11 can map the first distance to a second distance ranging from 0 to 1, but the present invention is not limited thereto.

[0055] Next, the peripheral device 12 or the host 11 can define the first input event by using the second direction and the second distance.

[0056] For example, in the scenarios of Figures 4A and 4B, the first input event can be understood as sliding a second distance along the positive direction of the first input axis A1 (the distance can vary between 0 and 1), but the present invention is not limited thereto.

[0057] In step S240, the peripheral device 12 or the host 11 controls the visual content displayed on the display 112 of the host 11 according to the first input event.

[0058] In one embodiment, the peripheral device 12 or the host device 11 can perform a scrolling operation on the visual content based on the second direction and the second distance.

[0059] In embodiments where the first input event is a sliding of a second distance along the positive direction of the first input axis A1, the peripheral device 12 or the host device 11 can, for example, scroll the visual content upwards, and the scrolling distance / speed can be positively correlated with the second distance. That is, the longer the second distance, the greater the scrolling distance / speed, but the invention is not limited thereto.

[0060] In another embodiment, when the first input event is sliding a second distance along the negative direction of the first input axis A1, the peripheral device 12 or the host 11 can, for example, scroll the visual content downwards, and the scrolling distance / speed is also positively correlated with the second distance.

[0061] In an embodiment where the first input event is a sliding of a second distance along the positive direction of the second input axis A2, the peripheral device 12 or the host device 11 can, for example, scroll the visual content to the right. On the other hand, in an embodiment where the first input event is a sliding of a second distance along the negative direction of the second input axis A2, the visual content can, for example, scroll to the left.

[0062] In other embodiments of the present invention, the first input axis A1 and / or the second input axis A2 can be calibrated through a calibration process. In different embodiments, the calibration process can be initiated manually by the user or automatically by the system 100.

[0063] Please refer to Figure 5, which illustrates a schematic diagram of the correction process according to a second embodiment of the present invention.

[0064] In this embodiment, in response to the determination that the correction process has been initiated, the host 11 can guide the user to perform a correction gesture in front of the host 11 while facing forward.

[0065] In one embodiment, the correction gesture can be, for example, an open palm gesture. That is, the host 11 can guide the user to perform the open palm gesture in front of the host 11 while facing forward, through audio and / or visual cues. Correspondingly, the hand gesture can be within the image capture range of the front camera of the host 11, but the invention is not limited thereto.

[0066] In Figure 5, the image capture range can correspond to the field of view (FOV) 510 of the host 11, where FOV 510 refers to the visible area in the virtual environment that the user can view at any given time. The field of view is usually measured in angles and represents the range of the visual scene displayed to the user, but the present invention is not limited thereto.

[0067] In this embodiment, the host 11 can display the scene captured by the front camera in the FOV 510, allowing the user to view hand gestures in the FOV 510.

[0068] Next, the host 11 can use its front camera to capture images of the user's hand gestures and determine whether the hand gestures correspond to the correction gestures.

[0069] In Figure 5, in response to the detection of a correction gesture during the correction process, the peripheral device 12 or the host device 11 can obtain the second gravity direction G2 detected by the peripheral device 12. Then, the peripheral device 12 or the host device 11 can determine the first input axis A1 associated with the input device 122 based on the second gravity direction G2.

[0070] In one embodiment, the peripheral device 12 or the host device 11 can take the opposite direction of the second gravity direction G2 as the positive direction of the first input axis A1, but the present invention is not limited thereto.

[0071] In one embodiment, the peripheral device 12 or the host device 11 can determine the second input axis A2 associated with the input device 122 based on the first input axis A1, as detailed in the above embodiment.

[0072] Please refer to Figure 6, which illustrates a schematic diagram of the correction process according to a third embodiment of the present invention.

[0073] In this embodiment, in response to the determination that the correction process has been initiated, the host 11 can guide the user to perform a target sliding operation on the input device 122 in a specified direction corresponding to the first input axis A1.

[0074] In Figure 6, the designated direction corresponding to the first input axis A1 can be, for example, an upward direction. In an embodiment, the host 11 can guide the user to perform an upward sliding operation on the input device 122 as the target sliding operation through audio and / or visual cues.

[0075] In this case, the user can perform a sliding operation on the input device 122 corresponding to the specified direction based on their own understanding of the specified direction.

[0076] In the above example, the user can perform an upward swipe operation on the input device 122, and the associated upward direction is only the upward direction relative to the user, but the present invention is not limited thereto.

[0077] Next, in response to the determination input device 122 detecting a second sliding operation along a specific direction D3, and the direction corresponding to the specified direction, the peripheral device 12 or the host 11 can determine the first input axis A1 associated with the input device 122 based on the specific direction D3.

[0078] For example, the peripheral device 12 or the host 11 can determine a specific direction D3 as the positive direction of the first input shaft A1, but the present invention is not limited thereto.

[0079] After the first input axis A1 is determined, the second input axis A2 can be determined accordingly. For details, please refer to the above embodiment.

[0080] In summary, the embodiments of the present invention provide a technical solution that dynamically determines the input axis based on a first reference direction of the host. In this case, the user can operate the peripheral device in the same way to achieve the same input operation at different positions / rotations, thereby improving the ease of use of the peripheral device.

[0081] Furthermore, by eliminating the limitations caused by the way the user wears the device, the technical solution of this invention can significantly improve the overall user experience.

[0082] In addition, the present invention also proposes other implementation methods for input axis determination, allowing users to more flexibly calibrate the input axis of the input device.

[0083] Although the present invention has been disclosed above by way of embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.

[0084] 11: Host 12: Peripheral devices 100: System 112: Monitor 122: Input device A1: First input axis A2: Second Input Axis DI1: First reference direction G1: Direction of primary gravity G1': Direction of primary gravity G2: Direction of the second gravity G2': Direction of the second gravity AN1: Angular difference AN2: Angular difference D3: Specific direction 510:FOV

Claims

1. A method for determining an input axis, comprising: A first reference direction of the host is determined by a peripheral device or a host, wherein the peripheral device has an input device, the peripheral device is connected to the host, and the host has a display, wherein the first reference direction is the forward direction that the host is facing. The peripheral device or the host determines a first input axis on the peripheral device associated with the input device based on the first reference direction of the host, wherein the first reference direction is determined to be the positive direction of the first input axis; in response to determining that the input device detects a first input operation, the peripheral device or the host converts the first input operation into a first input event relative to the first input axis; And the visual content displayed by the display of the host controlled by the peripheral device or the host based on the first input event.

2. The method as described in claim 1, wherein the first input axis is a vertical input axis associated with the input device, and the positive direction of the vertical input axis is the +Y direction in the coordinate system used by the input device.

3. The method as described in claim 2, further comprising: The peripheral device or the host computer rotates the first input shaft in the positive direction to determine a second input shaft associated with the input device, wherein the second input shaft is a horizontal input shaft.

4. The method of claim 1, wherein the first input operation is a first sliding operation that slides a first distance along a first direction, and converting the first input operation into the first input event relative to the first input axis includes: The first direction is converted into a second direction that serves as the positive direction of the first input axis; The first distance is mapped to a second distance ranging between 0 and 1; and the first input event is defined by using the second direction and the second distance.

5. The method as described in claim 4, wherein controlling the visual content displayed by the display of the host based on the first input event includes: The visual content is scrolled in the second direction based on the second distance.

6. The method of claim 1, wherein determining the first input axis associated with the input device based on the first reference direction comprises: Obtain a first gravity direction detected by the host computer and a second gravity direction detected by the peripheral device; Determine a first relative position between the first reference direction and the first gravity direction; and determine the first input axis based on the first relative position and the second gravity direction, wherein a second relative position between the positive direction of the first input axis and the second gravity direction corresponds to the first relative position between the first reference direction and the first gravity direction, wherein the first relative position is represented by an angle difference between the first reference direction and the first gravity direction on a specific plane, and the second relative position is represented by a corresponding angle difference on the specific plane corresponding to the angle difference.

7. The method as described in claim 6, further comprising: In response to the determination that the first relative position or the second gravity direction has changed, the first input axis is updated according to the changed first relative position or the changed second gravity direction.

8. The method as described in claim 1, further comprising: In response to the determination that a calibration gesture has been detected in a calibration process, the peripheral device or the host obtains a second gravity direction detected by the peripheral device; the peripheral device or the host corrects the first input axis associated with the input device based on the second gravity direction, wherein the first input axis is a vertical input axis associated with the input device; and the peripheral device or the host determines a second input axis associated with the input device based on the first input axis, wherein the second input axis is a horizontal input axis associated with the input device.

9. The method of claim 8, wherein determining the first input axis associated with the input device based on the second direction of gravity comprises: The opposite direction of the second gravity direction is taken as the positive direction of the first input axis.

10. The method of claim 8, wherein the host is a head-mounted display, the peripheral device is a wearable device worn on a user's hand, and the method further comprises: In response to the determination that the calibration process has been initiated, the host guides the user to perform the calibration gesture in front of the host while facing forward; The host computer uses a front-facing camera to capture images of the user's gestures; the host computer then determines whether the user's gestures correspond to the corrected gestures.

11. The method as described in claim 1, further comprising: In response to the determination that a correction process has been initiated, the host computer guides the user to perform a target sliding operation on the input device in a specified direction corresponding to the first input axis; in response to the determination that the input device detects a second sliding operation along a specific direction corresponding to the specified direction, the peripheral device or the host computer corrects the first input axis associated with the input device according to the specific direction.

12. The method of claim 11, wherein the specified direction corresponds to the positive direction of the first input axis, and determining the first input axis based on the specific direction comprises: The specific direction is taken as the positive direction of the first input axis.

13. A system for determining an input axis, comprising: A host computer with a monitor; And a peripheral device connected to the host, wherein: the peripheral device or the host determines a first reference direction of the host, wherein the peripheral device has an input device, the peripheral device is connected to the host, and the host has a display, wherein the first reference direction is the forward direction facing the host; the peripheral device or the host determines a first input axis on the peripheral device associated with the input device based on the first reference direction of the host, wherein the first reference direction is determined to be the positive direction of the first input axis; in response to determining that the input device detects a first input operation, the peripheral device or the host converts the first input operation into a first input event relative to the first input axis; The peripheral device or the host controls the visual content displayed by the display of the host according to the first input event.

14. The system as claimed in claim 13, wherein the first input axis is a vertical input axis associated with the input device, and the positive direction of the vertical input axis is the +Y direction in the coordinate system used by the input device.

15. The system of claim 14, wherein the peripheral device or the host further rotates the first input axis in the positive direction to determine a second input axis associated with the input device, wherein the second input axis is a horizontal input axis associated with the input device.

16. The system of claim 13, wherein the first input operation is a first sliding operation of sliding a first distance along a first direction, and the peripheral device or the host performs: converting the first direction into a second direction that is the positive direction of the first input axis; mapping the first distance to a second distance ranging between 0 and 1; and defining the first input event by using the second direction and the second distance.

17. The system of claim 13, wherein the peripheral device or the host performs: obtaining a first gravity direction detected by the host and obtaining a second gravity direction detected by the peripheral device; determining a first relative position between the first reference direction and the first gravity direction; and determining a first input axis based on the first relative position and the second gravity direction, wherein a second relative position between the positive direction of the first input axis and the second gravity direction corresponds to the first relative position between the first reference direction and the first gravity direction, wherein the first relative position is represented by an angular difference between the first reference direction and the first gravity direction on a specific plane, and the second relative position is represented by a corresponding angular difference on the specific plane corresponding to the angular difference.

18. The system of claim 17, wherein the peripheral device or the host further performs: in response to determining that the first relative position or the second gravity direction has changed, updating the first input axis according to the changed first relative position or the changed second gravity direction.

19. A computer-readable storage medium recording an executable computer program, the executable computer program being loaded by a peripheral device or a host to perform the following steps: determining a first reference direction of the host, wherein the peripheral device has an input device connected to the host, and the host has a display, wherein the first reference direction is a forward direction facing the host; determining a first input axis on the peripheral device associated with the input device based on the first reference direction of the host, wherein the first reference direction is determined to be the positive direction of the first input axis; in response to determining that the input device detects a first input operation, converting the first input operation into a first input event relative to the first input axis; and controlling visual content displayed by the display of the host based on the first input event.