最終更新:2014-12-02 (火) 03:41:30 (2079d)  

Raw Input
Top / Raw Input

The raw input API provides a stable and robust way for applications to accept raw input from any HID, including the keyboard and mouse.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645536(v=vs.85).aspx

メモ

API

構造体

  • RAWINPUT
    typedef struct tagRAWINPUT {
      RAWINPUTHEADER header;
      union {
        RAWMOUSE    mouse;
        RAWKEYBOARD keyboard;
        RAWHID      hid;
      } data;
    } RAWINPUT, *PRAWINPUT, *LPRAWINPUT;
    • RAWINPUTHEADER?
    • RAWMOUSE
    • RAWKEYBOARD?
    • RAWHID
      typedef struct tagRAWHID {
        DWORD dwSizeHid;
        DWORD dwCount;
        BYTE  bRawData[1];
      } RAWHID, *PRAWHID, *LPRAWHID;
  • RAWINPUTDEVICE
    typedef struct tagRAWINPUTDEVICE {
      USHORT usUsagePage;
      USHORT usUsage;
      DWORD  dwFlags;
      HWND   hwndTarget;
    } RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
  • RAWINPUTDEVICELIST?
  • RID_DEVICE_INFO?
  • RID_DEVICE_INFO_HID?
  • RID_DEVICE_INFO_KEYBOARD?
  • RID_DEVICE_INFO_MOUSE?

関数

ウィンドウメッセージ

メモ

複数キーボード

参考

関連