mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 01:38:12 +00:00
virtual joysticks: removed ball support (Bug 5028)
This commit is contained in:
@@ -466,14 +466,12 @@ SDL_JoystickOpen(int device_index)
|
||||
int
|
||||
SDL_JoystickAttachVirtual(SDL_JoystickType type,
|
||||
int naxes,
|
||||
int nballs,
|
||||
int nbuttons,
|
||||
int nhats)
|
||||
{
|
||||
#if SDL_JOYSTICK_VIRTUAL
|
||||
return SDL_JoystickAttachVirtualInner(type,
|
||||
naxes,
|
||||
nballs,
|
||||
nbuttons,
|
||||
nhats);
|
||||
#else
|
||||
@@ -539,17 +537,6 @@ SDL_JoystickSetVirtualAxis(SDL_Joystick * joystick, int axis, Sint16 value)
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
SDL_JoystickSetVirtualBall(SDL_Joystick * joystick, int axis, Sint16 xrel, Sint16 yrel)
|
||||
{
|
||||
#if SDL_JOYSTICK_VIRTUAL
|
||||
return SDL_JoystickSetVirtualBallInner(joystick, axis, xrel, yrel);
|
||||
#else
|
||||
return SDL_SetError("SDL not built with virtual-joystick support");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
SDL_JoystickSetVirtualButton(SDL_Joystick * joystick, int button, Uint8 value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user