Skip to content

Commit

Permalink
Fixed the inertia effect in the test program
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 26, 2014
1 parent d2fb8a2 commit d9ffe54
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/testhaptic.c
@@ -1,14 +1,3 @@
/*
Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.
*/
/*
Copyright (c) 2008, Edgar Simo Serra
All rights reserved.
Expand Down Expand Up @@ -199,7 +188,7 @@ main(int argc, char **argv)
/* The pretty awesome inertia effect. */
if (supported & SDL_HAPTIC_INERTIA) {
SDL_Log(" effect %d: Condition Inertia\n", nefx);
efx[nefx].type = SDL_HAPTIC_SPRING;
efx[nefx].type = SDL_HAPTIC_INERTIA;
efx[nefx].condition.length = 5000;
for (i = 0; i < SDL_HapticNumAxes(haptic); i++) {
efx[nefx].condition.right_sat[i] = 0x7FFF;
Expand Down

0 comments on commit d9ffe54

Please sign in to comment.