src/haptic/dummy/SDL_syshaptic.c
author Edgar Simo <bobbens@gmail.com>
Mon, 25 Aug 2008 20:49:36 +0000
branchgsoc2008_force_feedback
changeset 2653 54b892b6abb5
parent 2646 9408be170bff
permissions -rw-r--r--
Fixed haptic dummy driver not compiling with some compilers.
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
2508
f23cee9e16fc Fixed some typos preventing SDL from compiling with the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2495
diff changeset
    24
#if defined(SDL_HAPTIC_DUMMY) || defined(SDL_HAPTIC_DISABLED)
2474
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_syshaptic.h"
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    28
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    29
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    30
static int
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    31
SDL_SYS_LogicError(void)
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    32
{
2653
54b892b6abb5 Fixed haptic dummy driver not compiling with some compilers.
Edgar Simo <bobbens@gmail.com>
parents: 2646
diff changeset
    33
   SDL_SetError("Logic error: No haptic devices available.");
54b892b6abb5 Fixed haptic dummy driver not compiling with some compilers.
Edgar Simo <bobbens@gmail.com>
parents: 2646
diff changeset
    34
   return 0;
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    35
}
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    36
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    37
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    38
int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    39
SDL_SYS_HapticInit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    40
{
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    41
   return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    42
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    43
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
const char *
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    46
SDL_SYS_HapticName(int index)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    47
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    48
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    49
   return NULL;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    50
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    51
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    52
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    53
int
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    54
SDL_SYS_HapticOpen(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    55
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    56
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    57
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    58
}
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
int
2512
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    62
SDL_SYS_HapticMouse(void)
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    63
{
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    64
   return -1;
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    65
}
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    66
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    67
ef147ee4896c Improved some ioctl handling.
Edgar Simo <bobbens@gmail.com>
parents: 2509
diff changeset
    68
int
2509
3b54b3a97046 Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents: 2508
diff changeset
    69
SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    70
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    71
   return 0;
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
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    74
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    75
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    76
SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    77
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
    78
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    79
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    80
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    81
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    82
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    83
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    84
SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    85
{
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
    86
   return 0;
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    87
}
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
void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    91
SDL_SYS_HapticClose(SDL_Haptic * haptic)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    92
{
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    93
   return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    94
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    95
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    96
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    97
void
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    98
SDL_SYS_HapticQuit(void)
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
    99
{
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   100
   return;
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   101
}
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   102
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   103
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   104
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   105
SDL_SYS_HapticNewEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   106
                        struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   107
                        SDL_HapticEffect * base)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   108
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   109
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   110
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   111
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   112
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
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   115
SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   116
                           struct haptic_effect * effect,
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   117
                           SDL_HapticEffect * data)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   118
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   119
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   120
   return -1;
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
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   123
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   124
int
2544
2a61a38dd138 Alam pointed out that the dummy haptic driver does not compile.
Edgar Simo <bobbens@gmail.com>
parents: 2517
diff changeset
   125
SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect * effect, Uint32 iterations)
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   126
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   127
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   128
   return -1;
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
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   131
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   132
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   133
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
   134
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   135
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   136
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   137
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   138
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   139
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   140
void
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   141
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
   142
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   143
   SDL_SYS_LogicError();
2509
3b54b3a97046 Dummy SDL haptic driver finally builds now.
Edgar Simo <bobbens@gmail.com>
parents: 2508
diff changeset
   144
   return;
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   145
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   146
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   147
2495
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   148
int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect * effect)
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   149
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   150
   SDL_SYS_LogicError();
2495
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   151
   return -1;
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   152
}
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   153
66c02abeef0e Added SDL_HapticGetEffectStatus().
Edgar Simo <bobbens@gmail.com>
parents: 2492
diff changeset
   154
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   155
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   156
SDL_SYS_HapticSetGain(SDL_Haptic * haptic, int gain)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   157
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   158
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   159
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   160
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   161
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   162
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   163
int
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   164
SDL_SYS_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   165
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   166
   SDL_SYS_LogicError();
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   167
   return -1;
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   168
}
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   169
2645
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   170
int
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   171
SDL_SYS_HapticPause(SDL_Haptic * haptic)
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   172
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   173
   SDL_SYS_LogicError();
2645
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   174
   return -1;
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   175
}
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   176
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   177
int
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   178
SDL_SYS_HapticUnpause(SDL_Haptic * haptic)
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   179
{
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   180
   SDL_SYS_LogicError();
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   181
   return -1;
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   182
}
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   183
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   184
int
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   185
SDL_SYS_HapticStopAll(SDL_Haptic * haptic)
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   186
{
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   187
   SDL_SYS_LogicError();
2645
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   188
   return -1;
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   189
}
269ba4f28d0e Added support for pausing/unpausing haptic devices.
Edgar Simo <bobbens@gmail.com>
parents: 2544
diff changeset
   190
2492
31444718601e Updated the haptic dummy driver.
Edgar Simo <bobbens@gmail.com>
parents: 2474
diff changeset
   191
2646
9408be170bff Added SDL_HapticStopAll.
Edgar Simo <bobbens@gmail.com>
parents: 2645
diff changeset
   192
2474
3f80bf1528b4 Properly quit the SDL_haptic subsystem.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
   193
#endif /* SDL_HAPTIC_DUMMY || SDL_HAPTIC_DISABLED */