INPUT_MESSAGE_DEVICE_TYPE enumeration (winuser.h)

The type of device that sent the input message.

Syntax

typedef enum tagINPUT_MESSAGE_DEVICE_TYPE {
  IMDT_UNAVAILABLE = 0x00000000,
  IMDT_KEYBOARD = 0x00000001,
  IMDT_MOUSE = 0x00000002,
  IMDT_TOUCH = 0x00000004,
  IMDT_PEN = 0x00000008,
  IMDT_TOUCHPAD = 0x00000010
} INPUT_MESSAGE_DEVICE_TYPE;

Constants

 
IMDT_UNAVAILABLE
Value: 0x00000000
The device type isn't identified.
IMDT_KEYBOARD
Value: 0x00000001
Keyboard input.
IMDT_MOUSE
Value: 0x00000002
Mouse input.
IMDT_TOUCH
Value: 0x00000004
Touch input.
IMDT_PEN
Value: 0x00000008
Pen or stylus input.
IMDT_TOUCHPAD
Value: 0x00000010
Touchpad input (Windows 8.1 and later).

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server None supported
Header winuser.h

See also

Enumerations