Fix touch
This commit is contained in:
1 parent
31171d1cb7
commit
a07bf1d37c
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user