Ignore:
Timestamp:
Apr 29, 2012, 11:55:32 PM (8 years ago)
Author:
sam
Message:

core: tick methods now use seconds, like any sane system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlinput.cpp

    r1171 r1310  
    22// Lol Engine
    33//
    4 // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
     4// Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net>
    55//   This program is free software; you can redistribute it and/or
    66//   modify it under the terms of the Do What The Fuck You Want To
     
    3232
    3333private:
    34     void Tick(float deltams);
     34    void Tick(float seconds);
    3535
    3636    static ivec2 GetMousePos();
     
    5151}
    5252
    53 void SdlInput::TickGame(float deltams)
     53void SdlInput::TickGame(float seconds)
    5454{
    55     Entity::TickGame(deltams);
     55    Entity::TickGame(seconds);
    5656
    5757#if !defined _WIN32
    58     data->Tick(deltams);
     58    data->Tick(seconds);
    5959#endif
    6060}
    6161
    62 void SdlInput::TickDraw(float deltams)
     62void SdlInput::TickDraw(float seconds)
    6363{
    64     Entity::TickDraw(deltams);
     64    Entity::TickDraw(seconds);
    6565
    6666#if defined _WIN32
    67     data->Tick(deltams);
     67    data->Tick(seconds);
    6868#endif
    6969}
    7070
    71 void SdlInputData::Tick(float deltams)
     71void SdlInputData::Tick(float seconds)
    7272{
    7373#if defined USE_SDL
     
    8787#if 0
    8888        case SDL_KEYDOWN:
    89             Input::KeyPressed(event.key.keysym.sym, deltams);
     89            Input::KeyPressed(event.key.keysym.sym, seconds);
    9090            break;
    9191#endif
     
    110110    for (int i = 0; i < 256; i++)
    111111        if (keystate[i])
    112             Input::KeyPressed(i, deltams);
     112            Input::KeyPressed(i, seconds);
    113113#endif
    114114#endif
Note: See TracChangeset for help on using the changeset viewer.