alketii / violetland

Automatically exported from code.google.com/p/violetland
0 stars 0 forks source link

Mouse moves slowly #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Mouse moves slowly. This patch fixed this for me.

--- orig/violetland-v0.2.0/src/system/InputHandler.cpp  2009-10-22
05:38:46.000000000 +0500
+++ violetland-v0.2.0/src/system/InputHandler.cpp   2009-10-25
22:53:10.000000000 +0400
@@ -39,7 +39,7 @@
 void InputHandler::process(int deltaTime) {
    SDL_Event event;

-   if (SDL_PollEvent(&event)) {
+   while (SDL_PollEvent(&event)) {
        switch (event.type) {
        case SDL_KEYDOWN:
            for (int i = 0; i < GameInputEventsCount - 2; i++) {

Original issue reported on code.google.com by farafon...@gmail.com on 25 Oct 2009 at 6:59

GoogleCodeExporter commented 9 years ago
Didn't looked svn first :)

Original comment by farafon...@gmail.com on 25 Oct 2009 at 7:12

GoogleCodeExporter commented 9 years ago
Already fixed

Original comment by lolks...@gmail.com on 25 Oct 2009 at 7:15