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/ps3/ps3input.cpp

    r1110 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
     
    8282}
    8383
    84 void Ps3Input::TickGame(float deltams)
     84void Ps3Input::TickGame(float seconds)
    8585{
    86     Entity::TickGame(deltams);
     86    Entity::TickGame(seconds);
    8787
    8888#if defined __CELLOS_LV2__
     
    108108            int x = data->pad_data[i].button[CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_X];
    109109            int y = data->pad_data[i].button[CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_X + 1];
    110             vec2 delta(4e-3f * (abs(x - 127) < 16 ? 0 : x - 127),
    111                        -4e-3f * (abs(y - 127) < 16 ? 0 : y - 127));
    112             data->mousepos += delta * deltams;
     110            vec2 delta(4.f * (abs(x - 127) < 16 ? 0 : x - 127),
     111                       -4.f * (abs(y - 127) < 16 ? 0 : y - 127));
     112            data->mousepos += delta * seconds;
    113113            Input::SetMousePos((ivec2)data->mousepos);
    114114        }
Note: See TracChangeset for help on using the changeset viewer.