Home | History | Annotate | Download | only in input

Lines Matching refs:dt

765     float dt = (eventTime - state.updateTime) * 0.000000001f;
768 float xvel = (xpos - state.xpos) / dt;
769 float yvel = (ypos - state.ypos) / dt;
775 float alpha = dt / (FILTER_TIME_CONSTANT + dt);
780 float xaccel = (xvel - state.xvel) / dt;
781 float yaccel = (yvel - state.yvel) / dt;
790 state.xvel += (state.xaccel * dt) * alpha;
791 state.yvel += (state.yaccel * dt) * alpha;