Project

General

Profile

Actions

Emulator Issues #6491

closed

SDL_HAPTIC_SQUARE not decleared in final SDL 2.0 release.

Added by phire over 11 years ago.

Status:
Fixed
Priority:
Urgent
Assignee:
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Current
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Dolphin doesn't compile with the final release of SDL 2.0

/home/phire/projects/dolphin-emu/Source/Core/InputCommon/Src/ControllerInterface/SDL/SDL.cpp:135: error: 'SDL_HAPTIC_SQUARE' was not declared in this scope
   if (supported_effects & SDL_HAPTIC_SQUARE)
                           ^

From SDL_haptic.h:

/**
* \brief Left/Right effect supported.
*
* Haptic effect for direct control over high/low frequency motors.
*
* \sa SDL_HapticLeftRight
* \warning this value was SDL_HAPTIC_SQUARE right before 2.0.0 shipped. Sorry,
* we ran out of bits, and this is important for XInput devices.
*/
#define SDL_HAPTIC_LEFTRIGHT (1<<2)

/* !!! FIXME: put this back when we have more bits in 2.1 */
/*#define SDL_HAPTIC_SQUARE     (1&lt;&lt;2)*/
Actions

Also available in: Atom PDF