From d9ffe549e2778ffb469419f15b06894ca68e9700 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 26 Apr 2014 12:29:40 -0700 Subject: [PATCH] Fixed the inertia effect in the test program --- test/testhaptic.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/testhaptic.c b/test/testhaptic.c index 5e335674c..f62414193 100644 --- a/test/testhaptic.c +++ b/test/testhaptic.c @@ -1,14 +1,3 @@ -/* - Copyright (C) 1997-2014 Sam Lantinga - - 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. @@ -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;