Fix touch
This commit is contained in:
@@ -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