Maschell / dynamic_libs

21 stars 5 forks source link

Add support for vpad gyro and angle #7

Closed Crayon2000 closed 7 years ago

Crayon2000 commented 7 years ago

Gyroscope

The following variables hold the current state of the GamePad's gyroscopes.

Variable Value
gyro.x Rotation speed around X (horizontal) axis
gyro.y Rotation speed around Y (depth) axis
gyro.z Rotation speed around Z (vertical) axis

Angle

The following variables hold the current angle of rotation of the GamePad.

Variable Value
angle.x Rotation around X (horizontal) axis
angle.y Rotation around Y (depth) axis
angle.z Rotation around Z (vertical) axis

A change of 1.0 in these values represents a complete revolution around the specified axis. These variables do not appear to wrap around; multiple revolutions around the same axis will cause the value to continuously increase or decrease.

Test

If you need to see those values in action, you can look at the Nintendo Wii U demonstration page at http://www.nintendo.com/wiiu/built-in-software/browser-specs/sample Of course you need to open the link in the Wii U Internet Browser.

Here is an elf file to load in the Homebrew Launcher : test.elf.gz