Atlas - SDL_hidapi_sinput.h
Home / ext / SDL / src / joystick / hidapi Lines: 1 | Size: 2408 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1/* 2 Simple DirectMedia Layer 3 Copyright (C) 2025 Mitchell Cairns <[email protected]> 4 5 This software is provided 'as-is', without any express or implied 6 warranty. In no event will the authors be held liable for any damages 7 arising from the use of this software. 8 9 Permission is granted to anyone to use this software for any purpose, 10 including commercial applications, and to alter it and redistribute it 11 freely, subject to the following restrictions: 12 13 1. The origin of this software must not be misrepresented; you must not 14 claim that you wrote the original software. If you use this software 15 in a product, an acknowledgment in the product documentation would be 16 appreciated but is not required. 17 2. Altered source versions must be plainly marked as such, and must not be 18 misrepresented as being the original software. 19 3. This notice may not be removed or altered from any source distribution. 20*/ 21 22typedef enum 23{ 24 SINPUT_ANALOGSTYLE_NONE, 25 SINPUT_ANALOGSTYLE_LEFTONLY, 26 SINPUT_ANALOGSTYLE_RIGHTONLY, 27 SINPUT_ANALOGSTYLE_LEFTRIGHT, 28 SINPUT_ANALOGSTYLE_MAX, 29} SInput_AnalogStyleType; 30 31typedef enum 32{ 33 SINPUT_BUMPERSTYLE_NONE, 34 SINPUT_BUMPERSTYLE_ONE, 35 SINPUT_BUMPERSTYLE_TWO, 36 SINPUT_BUMPERSTYLE_MAX, 37} SInput_BumperStyleType; 38 39typedef enum 40{ 41 SINPUT_TRIGGERSTYLE_NONE, 42 SINPUT_TRIGGERSTYLE_ANALOG, 43 SINPUT_TRIGGERSTYLE_DIGITAL, 44 SINPUT_TRIGGERSTYLE_DUALSTAGE, 45 SINPUT_TRIGGERSTYLE_MAX, 46} SInput_TriggerStyleType; 47 48typedef enum 49{ 50 SINPUT_PADDLESTYLE_NONE, 51 SINPUT_PADDLESTYLE_TWO, 52 SINPUT_PADDLESTYLE_FOUR, 53 SINPUT_PADDLESTYLE_MAX, 54} SInput_PaddleStyleType; 55 56typedef enum 57{ 58 SINPUT_METASTYLE_NONE, 59 SINPUT_METASTYLE_BACK, 60 SINPUT_METASTYLE_BACKGUIDE, 61 SINPUT_METASTYLE_BACKGUIDESHARE, 62 SINPUT_METASTYLE_MAX, 63} SInput_MetaStyleType; 64 65typedef enum 66{ 67 SINPUT_TOUCHSTYLE_NONE, 68 SINPUT_TOUCHSTYLE_SINGLE, 69 SINPUT_TOUCHSTYLE_DOUBLE, 70 SINPUT_TOUCHSTYLE_MAX, 71} SInput_TouchStyleType; 72 73typedef enum 74{ 75 SINPUT_MISCSTYLE_NONE, 76 SINPUT_MISCSTYLE_1, 77 SINPUT_MISCSTYLE_2, 78 SINPUT_MISCSTYLE_3, 79 SINPUT_MISCSTYLE_4, 80 SINPUT_MISCSTYLE_MAX, 81} SInput_MiscStyleType; 82 83typedef struct 84{ 85 Uint16 analog_style; 86 Uint16 bumper_style; 87 Uint16 trigger_style; 88 Uint16 paddle_style; 89 Uint16 meta_style; 90 Uint16 touch_style; 91 Uint16 misc_style; 92} SDL_SInputStyles_t; 93[FILE END](C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.