This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::ControlsSixAxis Class

Header:#include <UnigineControls.h>
Inherits:Controls

ControlsSixAxis Class

Members


static ControlsSixAxisPtr create(int num)

Arguments

  • int num

int isAvailable()

int getButton(int button)

Arguments

  • int button

void setFilter(float filter)

Arguments

  • float filter

float getFilter()

void setLargeMotor(float speed)

Arguments

  • float speed

float getLeftX()

float getLeftY()

const char * getName()

int getNumber()

float getPressCircle()

float getPressCross()

float getPressDown()

float getPressL1()

float getPressL2()

float getPressLeft()

float getPressR1()

float getPressR2()

float getPressRight()

float getPressSquare()

float getPressTriangle()

float getPressUp()

float getRightX()

float getRightY()

float getSensorG()

float getSensorX()

float getSensorY()

float getSensorZ()

void setSmallMotor(float speed)

Arguments

  • float speed

void setStateButton(int state, int button)

Arguments

  • int state
  • int button

int getStateButton(int state)

Arguments

  • int state

void getStateEvent(int state)

Arguments

  • int state

int isStateEvent()

const char * getStateName(int state)

Arguments

  • int state

int clearButton(int button)

Arguments

  • int button

int restoreState(const Ptr<Stream> & stream)

Arguments

  • const Ptr<Stream> & stream

int saveState(const Ptr<Stream> & stream)

Arguments

  • const Ptr<Stream> & stream

int updateEvents()


int BUTTON_CIRCLE

int BUTTON_CROSS

int BUTTON_DOWN

int BUTTON_L1

int BUTTON_L2

int BUTTON_L3

int BUTTON_LEFT

int BUTTON_R1

int BUTTON_R2

int BUTTON_R3

int BUTTON_RIGHT

int BUTTON_SELECT

int BUTTON_SQUARE

int BUTTON_START

int BUTTON_TRIANGLE

int BUTTON_UP

int NUM_BUTTONS

Last update: 2017-07-03
Build: ()