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:
parent
e2bd76bff4
commit
497b8deec4
13 changed files with 402 additions and 176 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue