Showing only posts tagged input. Show all posts.

Mouselook and SDL - Code

Okay, here is some code for mouselook with SDL

struct {
              int x, y;
              //In this case: the position where the mouse is held at
              bool trap; //flag for holding mouse at one place
          } mouse;

          void MouseMotion(){
              /\* Set x and y to the current mouse position \*/
              int x, y;
              SDL_GetMouseState(&x …