SDK 6.3/PAWN/Motion Sensor

From WowWiki
Revision as of 19:36, 25 July 2026 by WowBot (talk | contribs) (Official WOWCube SDK 6.3 documentation (automated publish from SDK headers))
Jump to navigation Jump to search
Official WOWCube SDK documentation. SDK 6.3, PAWN API. Generated from the canonical SDK headers — do not edit by hand; regenerate from source.

SDK 6.3 · PAWN API: Core · Graphics · Topology · Sound · Motion Sensor · Leaderboard · Splash Screen · Physics · Network · Save · Scramble · Logging
C++: Native API · Application · GFX Engine  ·  Rust: Rust API (experimental)  ·  Changelog

SDK 6.3 · PAWN / Motion Sensor

Event handlers

ON_Pat

Syntax:

forward ON_Tap(const count, const display, const bool:opposite);
forward ON_Pat(const count, const display, const bool:opposite);

Description:

Pats handler.
Public function with such signature will be called when the pats sequence
is detected.

Arguments:

count
how many pats there are in the pats sequence
display
TBD: currently most recent pats axis
opposite
true, if most recent pat was detected from the opposite side
of cube

History:

v6.2 - ON_Tap is deprecated, added ON_Pat alias

Functions

MS_getFaceAccelX

Syntax:

native MS_getFaceAccelX(const display);

Description:

Get accelerometer value along X axis of some display.

Arguments:

display
for which accelerometer value will be returned

Return values:

Accelerometer value along X axis.

MS_getFaceAccelY

Syntax:

native MS_getFaceAccelY(const display);

Description:

Get accelerometer value along Y axis of some display.

Arguments:

display
for which accelerometer value will be returned

Return values:

Accelerometer value along Y axis.

MS_getFaceAccelZ

Syntax:

native MS_getFaceAccelZ(const display);

Description:

Get accelerometer value along Z axis of some display.

Arguments:

display
for which accelerometer value will be returned

Return values:

Accelerometer value along Z axis.

MS_getFaceGyroX

Syntax:

native MS_getFaceGyroX(const display);

Description:

Get gyroscope value around X axis of some display.

Arguments:

display
for which gyroscope value will be returned

Return values:

Gyroscope value around X axis.

MS_getFaceGyroY

Syntax:

native MS_getFaceGyroY(const display);

Description:

Get gyroscope value around Y axis of some display.

Arguments:

display
for which gyroscope value will be returned

Return values:

Gyroscope value around Y axis.

MS_getFaceGyroZ

Syntax:

native MS_getFaceGyroZ(const display);

Description:

Get gyroscope value around Z axis of some display.

Arguments:

display
for which gyroscope value will be returned

Return values:

Gyroscope value around Z axis.