1.Moved all xinput2 functionality to its own file

2.Implement touch events using Xinput2.Leave evtouch as a fallback when xinput2 is not supported
This commit is contained in:
Dimitris Zenios 2012-05-31 13:37:02 +03:00
parent e2bd76bff4
commit 497b8deec4
13 changed files with 402 additions and 176 deletions

View file

@ -54,7 +54,9 @@ main(int argc, char *argv[])
}
srand((unsigned int)time(NULL));
SDL_SetRelativeMouseMode(SDL_TRUE);
if(SDL_SetRelativeMouseMode(SDL_TRUE) < 0) {
return 3;
};
rect.x = DEFAULT_WINDOW_WIDTH / 2;
rect.y = DEFAULT_WINDOW_HEIGHT / 2;