-api-id | -api-type |
---|---|
P:Windows.UI.Core.AcceleratorKeyEventArgs.DeviceId |
winrt property |
Gets a unique ID for the input device that generated this key event.
Use DeviceId to differentiate between devices that can generate key events, such as multiple game controllers.
DeviceId is not supported for all input devices.
A unique identifier for the input device associated with the key event, or an empty string. The same device can be assigned a different ID each time it is connected.
This property is useful for retrieving info for a specific user account associated with the input device.
CoreComponentInputSource.GetCurrentKeyEventDeviceId, CoreWindow.GetCurrentKeyEventDeviceId