Changeset 1310 for trunk/src/platform/ps3
- Timestamp:
- Apr 29, 2012, 11:55:32 PM (10 years ago)
- Location:
- trunk/src/platform/ps3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/platform/ps3/ps3input.cpp
r1110 r1310 2 2 // Lol Engine 3 3 // 4 // Copyright: (c) 2010-201 1Sam Hocevar <sam@hocevar.net>4 // Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net> 5 5 // This program is free software; you can redistribute it and/or 6 6 // modify it under the terms of the Do What The Fuck You Want To … … 82 82 } 83 83 84 void Ps3Input::TickGame(float deltams)84 void Ps3Input::TickGame(float seconds) 85 85 { 86 Entity::TickGame( deltams);86 Entity::TickGame(seconds); 87 87 88 88 #if defined __CELLOS_LV2__ … … 108 108 int x = data->pad_data[i].button[CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_X]; 109 109 int y = data->pad_data[i].button[CELL_PAD_BTN_OFFSET_ANALOG_RIGHT_X + 1]; 110 vec2 delta(4 e-3f * (abs(x - 127) < 16 ? 0 : x - 127),111 -4 e-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; 113 113 Input::SetMousePos((ivec2)data->mousepos); 114 114 } -
trunk/src/platform/ps3/ps3input.h
r865 r1310 2 2 // Lol Engine 3 3 // 4 // Copyright: (c) 2010-201 1Sam Hocevar <sam@hocevar.net>4 // Copyright: (c) 2010-2012 Sam Hocevar <sam@hocevar.net> 5 5 // This program is free software; you can redistribute it and/or 6 6 // modify it under the terms of the Do What The Fuck You Want To … … 31 31 32 32 protected: 33 virtual void TickGame(float deltams);33 virtual void TickGame(float seconds); 34 34 35 35 private:
Note: See TracChangeset
for help on using the changeset viewer.