Path: blob/master/thirdparty/sdl/core/linux/SDL_evdev.h
10279 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*/2021#include "SDL_internal.h"2223#ifndef SDL_evdev_h_24#define SDL_evdev_h_2526#ifdef SDL_INPUT_LINUXEV2728struct input_event;2930extern bool SDL_EVDEV_Init(void);31extern void SDL_EVDEV_Quit(void);32extern void SDL_EVDEV_SetVTSwitchCallbacks(void (*release_callback)(void*), void *release_callback_data,33void (*acquire_callback)(void*), void *acquire_callback_data);34extern int SDL_EVDEV_GetDeviceCount(int device_class);35extern void SDL_EVDEV_Poll(void);36extern Uint64 SDL_EVDEV_GetEventTimestamp(struct input_event *event);3738#endif // SDL_INPUT_LINUXEV3940#endif // SDL_evdev_h_414243