sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

usb_ids.h (3816B)


      1 /*
      2   Simple DirectMedia Layer
      3   Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
      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 
     22 #ifndef usb_ids_h_
     23 #define usb_ids_h_
     24 
     25 /* Definitions of useful USB VID/PID values */
     26 
     27 #define USB_VENDOR_APPLE        0x05ac
     28 #define USB_VENDOR_HYPERKIN     0x2e24
     29 #define USB_VENDOR_MICROSOFT    0x045e
     30 #define USB_VENDOR_NINTENDO     0x057e
     31 #define USB_VENDOR_NVIDIA       0x0955
     32 #define USB_VENDOR_PDP          0x0e6f
     33 #define USB_VENDOR_POWERA       0x24c6
     34 #define USB_VENDOR_SONY         0x054c
     35 #define USB_VENDOR_RAZER        0x1532
     36 #define USB_VENDOR_VALVE        0x28de
     37 
     38 #define USB_PRODUCT_NINTENDO_GAMECUBE_ADAPTER           0x0337
     39 #define USB_PRODUCT_NINTENDO_SWITCH_PRO                 0x2009
     40 #define USB_PRODUCT_RAZER_PANTHERA                      0x0401
     41 #define USB_PRODUCT_RAZER_PANTHERA_EVO                  0x1008
     42 #define USB_PRODUCT_RAZER_ATROX                         0x0a00
     43 #define USB_PRODUCT_SONY_DS4                            0x05c4
     44 #define USB_PRODUCT_SONY_DS4_DONGLE                     0x0ba0
     45 #define USB_PRODUCT_SONY_DS4_SLIM                       0x09cc
     46 #define USB_PRODUCT_SONY_DS5                            0x0ce6
     47 #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_1             0x02e3
     48 #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2             0x0b00
     49 #define USB_PRODUCT_XBOX_ONE_ELITE_SERIES_2_BLUETOOTH   0x0b05
     50 #define USB_PRODUCT_XBOX_ONE_S                          0x02ea
     51 #define USB_PRODUCT_XBOX_ONE_S_REV1_BLUETOOTH           0x02e0
     52 #define USB_PRODUCT_XBOX_ONE_S_REV2_BLUETOOTH           0x02fd
     53 #define USB_PRODUCT_XBOX_ONE_SERIES_X                   0x0b12
     54 #define USB_PRODUCT_XBOX_ONE_SERIES_X_BLUETOOTH         0x0b13
     55 #define USB_PRODUCT_XBOX_ONE_RAW_INPUT_CONTROLLER       0x02ff
     56 #define USB_PRODUCT_XBOX_ONE_XINPUT_CONTROLLER          0x02fe    /* Made up product ID for XInput */
     57 
     58 /* USB usage pages */
     59 #define USB_USAGEPAGE_GENERIC_DESKTOP   0x0001
     60 #define USB_USAGEPAGE_BUTTON            0x0009
     61 
     62 /* USB usages for USAGE_PAGE_GENERIC_DESKTOP */
     63 #define USB_USAGE_GENERIC_POINTER               0x0001
     64 #define USB_USAGE_GENERIC_MOUSE                 0x0002
     65 #define USB_USAGE_GENERIC_JOYSTICK              0x0004
     66 #define USB_USAGE_GENERIC_GAMEPAD               0x0005
     67 #define USB_USAGE_GENERIC_KEYBOARD              0x0006
     68 #define USB_USAGE_GENERIC_KEYPAD                0x0007
     69 #define USB_USAGE_GENERIC_MULTIAXISCONTROLLER   0x0008
     70 #define USB_USAGE_GENERIC_X                     0x0030
     71 #define USB_USAGE_GENERIC_Y                     0x0031
     72 #define USB_USAGE_GENERIC_Z                     0x0032
     73 #define USB_USAGE_GENERIC_RX                    0x0033
     74 #define USB_USAGE_GENERIC_RY                    0x0034
     75 #define USB_USAGE_GENERIC_RZ                    0x0035
     76 #define USB_USAGE_GENERIC_SLIDER                0x0036
     77 #define USB_USAGE_GENERIC_DIAL                  0x0037
     78 #define USB_USAGE_GENERIC_WHEEL                 0x0038
     79 #define USB_USAGE_GENERIC_HAT                   0x0039
     80 
     81 #endif /* usb_ids_h_ */
     82 
     83 /* vi: set ts=4 sw=4 expandtab: */