Ignore:
Timestamp:
Jan 26, 2011, 3:49:51 PM (10 years ago)
Author:
sam
Message:

Rename Float3 to float3, Int3 to int3 etc. and add the 4-member versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.cpp

    r236 r294  
    3535    { }
    3636
    37     Int2 mouse;
    38     Int3 buttons;
     37    int2 mouse;
     38    int3 buttons;
    3939}
    4040inputdata;
     
    4646 */
    4747
    48 Float2 Input::GetAxis(int axis)
     48float2 Input::GetAxis(int axis)
    4949{
    5050    float invsqrt2 = sqrtf(0.5f);
    51     Float2 f;
     51    float2 f;
    5252
    5353    /* Simulate a joystick using the keyboard. This SDL call is free. */
     
    6666}
    6767
    68 void Input::SetMousePos(Int2 coord)
     68void Input::SetMousePos(int2 coord)
    6969{
    7070    data->mouse = coord;
    7171}
    7272
    73 Int2 Input::GetMousePos()
     73int2 Input::GetMousePos()
    7474{
    7575    return data->mouse;
     
    8686}
    8787
    88 Int3 Input::GetMouseButtons()
     88int3 Input::GetMouseButtons()
    8989{
    9090    return data->buttons;
Note: See TracChangeset for help on using the changeset viewer.