Path: blob/master/thirdparty/sdl/joystick/windows/SDL_dinputjoystick_c.h
9905 views
/*1Simple DirectMedia Layer2Copyright (C) 1997-2025 Sam Lantinga <[email protected]>34This software is provided 'as-is', without any express or implied5warranty. In no event will the authors be held liable for any damages6arising from the use of this software.78Permission is granted to anyone to use this software for any purpose,9including commercial applications, and to alter it and redistribute it10freely, subject to the following restrictions:11121. The origin of this software must not be misrepresented; you must not13claim that you wrote the original software. If you use this software14in a product, an acknowledgment in the product documentation would be15appreciated but is not required.162. Altered source versions must be plainly marked as such, and must not be17misrepresented as being the original software.183. This notice may not be removed or altered from any source distribution.19*/20#include "SDL_internal.h"2122// Set up for C function definitions, even when using C++23#ifdef __cplusplus24extern "C" {25#endif2627extern bool SDL_DINPUT_JoystickInit(void);28extern void SDL_DINPUT_JoystickDetect(JoyStick_DeviceData **pContext);29extern bool SDL_DINPUT_JoystickPresent(Uint16 vendor, Uint16 product, Uint16 version);30extern bool SDL_DINPUT_JoystickOpen(SDL_Joystick *joystick, JoyStick_DeviceData *joystickdevice);31extern bool SDL_DINPUT_JoystickRumble(SDL_Joystick *joystick, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble);32extern void SDL_DINPUT_JoystickUpdate(SDL_Joystick *joystick);33extern void SDL_DINPUT_JoystickClose(SDL_Joystick *joystick);34extern void SDL_DINPUT_JoystickQuit(void);3536// Ends C function definitions when using C++37#ifdef __cplusplus38}39#endif404142