src/haptic/dummy/SDL_syshaptic.c
author Edgar Simo <bobbens@gmail.com>
Thu, 03 Jul 2008 09:58:27 +0000
branchgsoc2008_force_feedback
changeset 2495 66c02abeef0e
parent 2492 31444718601e
child 2508 f23cee9e16fc
permissions -rw-r--r--
Added SDL_HapticGetEffectStatus(). More comments.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     1
/*
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     3
    Copyright (C) 2008 Edgar Simo
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     4
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
     9
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    13
    Lesser General Public License for more details.
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    14
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    18
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    19
    Sam Lantinga
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    20
    slouken@libsdl.org
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    21
*/
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    22
#include "SDL_config.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    23
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    24
#ifdef defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    25
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    26
#include "SDL_haptic.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    27
#include "../SDL_haptic_c.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    28
#include "../SDL_syshaptic.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    29
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    30
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    31
int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    32
SDL_SYS_HapticInit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    33
{
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    34
   SDL_numhaptics = 0;
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    35
   return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    36
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    37
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    38
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    39
const char *
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    40
SDL_SYS_HapticName(int index)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    41
{
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    42
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    43
   return NULL;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    44
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    45
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    46
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    47
int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    48
SDL_SYS_HapticOpen(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    49
{
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    50
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    51
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    52
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    53
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    54
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    55
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    56
SDL_JoystickIsHaptic(SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    57
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    58
   return 0;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    59
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    60
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    61
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    62
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    63
SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    64
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    65
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    66
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    67
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    68
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    69
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    70
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    71
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    72
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    73
   return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    74
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    75
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    76
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    77
void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    78
SDL_SYS_HapticClose(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    79
{
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    80
   return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    81
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    82
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    83
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    84
void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    85
SDL_SYS_HapticQuit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    86
{
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    87
   return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    88
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    89
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    90
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    91
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    92
SDL_SYS_HapticNewEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    93
                        struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    94
                        SDL_HapticEffect * base)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    95
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    96
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    97
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    98
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    99
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   100
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   101
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   102
SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   103
                           struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   104
                           SDL_HapticEffect * data)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   105
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   106
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   107
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   108
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   109
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   110
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   111
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   112
SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   113
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   114
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   115
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   116
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   117
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   118
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   119
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   120
SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   121
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   122
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   123
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   124
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   125
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   126
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   127
void
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   128
SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect * effect)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   129
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   130
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   131
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   132
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   133
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   134
2495
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   135
int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect)
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   136
{
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   137
   SDL_SetError("Logic error: No Haptic devices available.");
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   138
   return -1;
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   139
}
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   140
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   141
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   142
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   143
SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   144
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   145
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   146
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   147
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   148
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   149
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   150
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   151
SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   152
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   153
   SDL_SetError("Logic error: No haptic devices available.");
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   154
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   155
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   156
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   157
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   158
#endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */