Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2022.1.16.8522 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2022.1.16

◆ GetDeviceIDFromGamepad()

AKSOUNDENGINE_API AkDeviceID AK::GetDeviceIDFromGamepad ( Windows::Gaming::Input::Gamepad^  rGamepad)

Get the device ID corresponding to a Universal Windows Platform Gamepad reference. This device ID can be used to add/remove motion output for that gamepad.

Note
The ID returned is unique to Wwise and does not correspond to any sensible value outside of Wwise.
This function is only available for project code using C++/CX.
Returns
Unique device ID, or AK_INVALID_DEVICE_ID if the reference is no longer valid (such as if the gamepad was disconnected)

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