PascalGameDevelopment/SDL2-for-Pascal

Lack of "SDL_JoystickHasRumble" and "SDL_JoystickHasRumbleTriggers" function imports

Closed this issue · 1 comments

Headers does not contain imports of the following functions:

The following imports works on Windows 10, using SDL 2.0.20.0 dll file:

function SDL_JoystickHasRumble(joystick: PSDL_Joystick): TSDL_Bool; cdecl;
  external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_JoystickHasRumble' {$ENDIF} {$ENDIF};

function SDL_JoystickHasRumbleTriggers(joystick: PSDL_Joystick): TSDL_Bool; cdecl;
  external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_JoystickHasRumbleTriggers' {$ENDIF} {$ENDIF};

You should check if those are proper for other platforms.

Thanks for the patch! If this works in Win10 I don't see a reason for it not to work on other platforms.

According to our code style guidelines it is preferable to use native Boolean instead of TSDL_Bool, but it will be acceptable for now. The difference has to be examined in more detail. (See #30)