Wwise 版本
arrow_right 目录
Wwise SDK 2021.1.6

◆ 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.

注解
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.
返回
Unique device ID, or AK_INVALID_DEVICE_ID if the reference is no longer valid (such as if the gamepad was disconnected)