版本

menu_open
AKRESULT __cdecl AK::MotionEngine::AddPlayerMotionDevice ( AkUInt8  in_iPlayerID,
AkUInt32  in_iCompanyID,
AkUInt32  in_iDeviceID,
void *  in_pDevice = NULL  
)

Connects a motion device to a player. Call this function from your game to tell the motion engine that a player is using the specified device.

Returns:
  • AK_Success if the initialization was successful
  • AK_Fail if the device could not be initialized. Usually this means the drivers are not installed.
See also:
Parameters:
in_iPlayerID  Player number, must be between 0 and 3. See platform-specific documentation for more details.
in_iCompanyID  Company ID providing support for the device
in_iDeviceID  Device ID, must be one of the currently supported devices.
in_pDevice  PS4: PS4 Device handle, returned by scePadOpen. Windows: Windows Direct Input Device reference for DirectInput. NULL to use XInput. WiiU: Use AK_MOTION_WIIMOTE_DEVICE to add a Wiimote or AK_MOTION_DRC_DEVICE to add a DRC device. XboxOne: Use IGamepad::Id. > Keep NULL for all other platforms.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅