Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1000 Bytes

acceleratorkeyeventargs_deviceid.md

File metadata and controls

28 lines (19 loc) · 1000 Bytes
-api-id -api-type
P:Windows.UI.Core.AcceleratorKeyEventArgs.DeviceId
winrt property

Windows.UI.Core.AcceleratorKeyEventArgs.DeviceId

-description

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.

-property-value

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.

-remarks

This property is useful for retrieving info for a specific user account associated with the input device.

-examples

-see-also

CoreComponentInputSource.GetCurrentKeyEventDeviceId, CoreWindow.GetCurrentKeyEventDeviceId