CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: INPUT class?

  1. #1
    Join Date
    Aug 2008
    Posts
    6

    INPUT class?

    I just downloaded someone's source for an old project that he discontinued and has abandoned and made open source. I looked over the code and saw (in multiple spots) what needs to be done to update and continue it. It's a simple matter of changing some memory addresses and also fixing some boolean variables. Anyway, here's the question:

    I tried compiling what he posted. I got the error
    'INPUT' undeclared

    It was used in this situation:
    INPUT *key;

    So it's either a class declared in a not-included header or the version of windows.h (which is where I'd assume it would be) is missing something. I'm using the one that came with Dev-C++.

    Anyone have any information on the INPUT class? I've searched google but I gotta say, "list of classes in windows.h" and "c++ input class" turn up a head-turning amount of unrelated results.

    Thanks,
    Richard

  2. #2
    Join Date
    Feb 2005
    Posts
    2,160

    Re: INPUT class?

    In WinUser.h it's declared:

    Code:
    typedef struct tagINPUT {
        DWORD   type;
    
        union
        {
            MOUSEINPUT      mi;
            KEYBDINPUT      ki;
            HARDWAREINPUT   hi;
        };
    } INPUT, *PINPUT, FAR* LPINPUT;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured