title: Uint8 - Missing Type specifier
body: <p>I'm trying to write a singleton class to hold the state of inputs from the user (mouse/keyboard data). The SDL API returns keyboard data as Uint8 pointer array, however, why I try to create the Uint8 pointer, I get these errors at the line w/ the uint8:</p>
  
  <pre><code>error C2143: syntax error : missing ';' before '*'
  
  error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  </code></pre>
  
  <p>I've used Uint8 as a data type without defining it before, so I'm not sure what is causing the issue here. Here is my code:</p>
  
  <pre class="lang-c prettyprint-override"><code>class InputState {
  public:
  
      InputState()
      {};
      ~InputState()
      {};
  
  
      static InputState *getInputState(void)
      {
          static InputState *state = new InputState();
  
          return state;
      };
  
  public:
      Uint8 *keys;
  
      struct MouseState
      {
          int LeftButtonDown;
          int RightButtonDown;
          int MiddleButtonDown;
  
          int x;
          int y;
  
          MouseState ()
          {
              LeftButtonDown = 0;
              RightButtonDown = 0;
              MiddleButtonDown = 0;
  
              x = 0;
              y = 0;
          }
      };
  
      MouseState *mouseState;
  };
  </code></pre>