Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5477 in orxonox.OLD for trunk/src/lib/event


Ignore:
Timestamp:
Nov 3, 2005, 2:38:03 PM (19 years ago)
Author:
patrick
Message:

orxonox/lib/event: enumeration now correctly implemented

Location:
trunk/src/lib/event
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/event/event_def.h

    r5388 r5477  
    1818typedef enum extEventTyes
    1919{
    20   EV_MOUSE_BUTTON_LEFT           = SDLK_LAST,
     20  EV_MOUSE_BUTTON_LEFT           = SDLK_LAST + 1,
    2121  EV_MOUSE_BUTTON_MIDDLE,
    2222  EV_MOUSE_BUTTON_RIGHT,
  • trunk/src/lib/event/event_handler.cc

    r5476 r5477  
    279279        case SDL_MOUSEBUTTONUP:
    280280          ev.bPressed = false;
    281           ev.type = event.button.button + SDLK_LAST - 1;
     281          ev.type = event.button.button + SDLK_LAST;
    282282          break;
    283283        case SDL_MOUSEBUTTONDOWN:
    284284          ev.bPressed = true;
    285           ev.type = event.button.button + SDLK_LAST - 1;
     285          ev.type = event.button.button + SDLK_LAST;
    286286          break;
    287287        case SDL_JOYAXISMOTION:
Note: See TracChangeset for help on using the changeset viewer.