1
0

Fix touch

This commit is contained in:
otya128
2016-12-14 17:58:02 +09:00
parent 31171d1cb7
commit a07bf1d37c

View File

@@ -741,7 +741,6 @@ class PetitComputer
glDepthMask(GL_TRUE);
glDisable(GL_BLEND);
SDL_GL_SwapWindow(window);
}
auto renderticks = (SDL_GetTicks() - profile);
if(renderprofile) writeln(renderticks);
int mousex, mousey;
@@ -805,6 +804,7 @@ class PetitComputer
touchPosition = Touch(0, mousex, mousey);
}
}
}
while (SDL_PollEvent(&event))
{
switch (event.type)