Path: blob/master/thirdparty/sdl/joystick/windows/SDL_rawinputjoystick_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"21#include "../../core/windows/SDL_windows.h"2223// Return true if the RawInput driver is enabled24extern bool RAWINPUT_IsEnabled(void);2526// Registers for input events27extern int RAWINPUT_RegisterNotifications(HWND hWnd);28extern int RAWINPUT_UnregisterNotifications(void);2930// Returns 0 if message was handled31extern LRESULT CALLBACK RAWINPUT_WindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);323334