Ignore:
Timestamp:
Nov 1, 2011, 6:55:19 PM (9 years ago)
Author:
sam
Message:

core: split vector operations into linear and non-linear so that we can
reuse the linear operations in quaternions. Also mark some constructors
explicit to better spot coding errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input.cpp

    r1037 r1046  
    139139                data->entities[n]->pressed = data->buttons;
    140140            else
    141                 data->entities[n]->clicked = 0;
     141                data->entities[n]->clicked = ivec3(0);
    142142        }
    143143        else
     
    145145            data->entities[n]->mousepos = ivec2(-1);
    146146            /* FIXME */
    147             data->entities[n]->released = 0;
    148             data->entities[n]->pressed = 0;
    149             data->entities[n]->clicked = 0;
     147            data->entities[n]->released = ivec3(0);
     148            data->entities[n]->pressed = ivec3(0);
     149            data->entities[n]->clicked = ivec3(0);
    150150        }
    151151    }
Note: See TracChangeset for help on using the changeset viewer.