Gets the location of a key on the keyboard or device.
HRESULT IDOMKeyboardEvent::get_location(ULONG *p);
- Pointer to a variable of type unsigned long that receives one of the values listed in Possible Values.
DOM_KEY_LOCATION_STANDARD The key is not on the right or left, and it did not originate from the numeric keypad (for example, the Q key). DOM_KEY_LOCATION_LEFT A left key was activated (for example, the left Shift key). DOM_KEY_LOCATION_RIGHT A right key was activated (for example, the right Shift key). DOM_KEY_LOCATION_NUMPAD The key originated on the numeric keypad (for example, the 1 key on the numeric keypad). DOM_KEY_LOCATION_MOBILE The key originated on the physical or virtual keyboard of a mobile device. DOM_KEY_LOCATION_JOYSTICK The key originated on a game controller or joystick.
Returns S_OK if successful, or an error value otherwise.