WM_INPUT and raw input

This is a discussion on WM_INPUT and raw input within the Windows Programming forums, part of the Platform Specific Boards category; I got this piece of code, but it keeps giving me: RAWINPUTDEVICE not declared, while msdn says its declared in ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    29

    WM_INPUT and raw input

    I got this piece of code, but it keeps giving me: RAWINPUTDEVICE not declared, while msdn says its declared in winuser.h, I included that, and it still doesnt work.Why?

    Code:
    RAWINPUTDEVICE Rid[2];
    
    Rid[0].usUsagePage = 01h; 
    Rid[0].usUsage = 05h; 
    Rid[0].dwFlags = 0;                 // adds game pad
    
    
    if (RegisterRawInputDevices(Rid, 2, sizeof(Rid[0])) == FALSE) {
        //registration failed. Call GetLastError for the cause of the error.
    }
    Dev-C++ 4.9.9.2
    Code::Blocks
    Win XP

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Do you have the latest Platform SDK?

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    29
    I have, do i need to set it in dev-C++?

    EDIT:
    I have included the library's, the bins and the includes, but it gives me alot of errors all over the code.Also in the .h files there are many errors.
    Last edited by Nephiroth; 02-18-2006 at 12:12 AM.
    Dev-C++ 4.9.9.2
    Code::Blocks
    Win XP

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    you linking?

    -luser32

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21