Version

menu_open
Wwise SDK 2023.1.8

◆ GetDeviceIDFromPlayerIndex()

AKSOUNDENGINE_API AkDeviceID AK::SoundEngine::GetDeviceIDFromPlayerIndex ( int  playerIndex)

Get the motion device ID corresponding to a GCController player index. This device ID can be used to add/remove motion output for that gamepad. The player index is 0-based, and corresponds to a value of type GCControllerPlayerIndex in the Core.Haptics framework.

Note
The ID returned is unique to Wwise and does not correspond to any sensible value outside of Wwise.
Returns
Unique device ID

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise