Difference between revisions of "SDK 6.3/PAWN/Motion Sensor"

From WowWiki
Jump to navigation Jump to search
(Official WOWCube SDK 6.3 documentation (automated publish from SDK headers))
(Mark PAWN API as legacy (supported, not developed) (WowBot))
 
Line 1: Line 1:
 
{{notice|'''Official WOWCube SDK documentation.''' SDK 6.3, PAWN API. Generated from the canonical SDK headers — do not edit by hand; regenerate from source.}}
 
{{notice|'''Official WOWCube SDK documentation.''' SDK 6.3, PAWN API. Generated from the canonical SDK headers — do not edit by hand; regenerate from source.}}
 +
{{notice|'''Legacy track.''' The PAWN API is supported but no longer actively developed — the last PAWN additions shipped in SDK 6.2. New development uses the [[SDK 6.3/C++/Native API|C++ (WebAssembly) API]].}}
  
 
{{SDK 6.3 nav}}
 
{{SDK 6.3 nav}}

Latest revision as of 09:45, 26 July 2026

Official WOWCube SDK documentation. SDK 6.3, PAWN API. Generated from the canonical SDK headers — do not edit by hand; regenerate from source.
Legacy track. The PAWN API is supported but no longer actively developed — the last PAWN additions shipped in SDK 6.2. New development uses the C++ (WebAssembly) API.

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.