mirror of https://github.com/encounter/SDL.git
Fixed open functions in the SDL_hidapi.h header
This commit is contained in:
parent
1e159bc6fa
commit
b15e880e73
|
@ -226,7 +226,7 @@ extern DECLSPEC void SDLCALL SDL_hid_free_enumeration(SDL_hid_device_info *devs)
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
SDL_hid_device * SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number);
|
extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open(unsigned short vendor_id, unsigned short product_id, const wchar_t *serial_number);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open a HID device by its path name.
|
* Open a HID device by its path name.
|
||||||
|
@ -241,7 +241,7 @@ SDL_hid_device * SDL_hid_open(unsigned short vendor_id, unsigned short product_i
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*/
|
*/
|
||||||
SDL_hid_device * SDL_hid_open_path(const char *path, int bExclusive /* = false */);
|
extern DECLSPEC SDL_hid_device * SDLCALL SDL_hid_open_path(const char *path, int bExclusive /* = false */);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write an Output report to a HID device.
|
* Write an Output report to a HID device.
|
||||||
|
|
|
@ -847,3 +847,5 @@
|
||||||
#define SDL_RenderWindowToLogical SDL_RenderWindowToLogical_REAL
|
#define SDL_RenderWindowToLogical SDL_RenderWindowToLogical_REAL
|
||||||
#define SDL_RenderLogicalToWindow SDL_RenderLogicalToWindow_REAL
|
#define SDL_RenderLogicalToWindow SDL_RenderLogicalToWindow_REAL
|
||||||
#define SDL_hid_device_change_count SDL_hid_device_change_count_REAL
|
#define SDL_hid_device_change_count SDL_hid_device_change_count_REAL
|
||||||
|
#define SDL_hid_open SDL_hid_open_REAL
|
||||||
|
#define SDL_hid_open_path SDL_hid_open_path_REAL
|
||||||
|
|
|
@ -916,3 +916,5 @@ SDL_DYNAPI_PROC(const SDL_Rect*,SDL_GetWindowMouseRect,(SDL_Window *a),(a),retur
|
||||||
SDL_DYNAPI_PROC(void,SDL_RenderWindowToLogical,(SDL_Renderer *a, int b, int c, float *d, float *e),(a,b,c,d,e),)
|
SDL_DYNAPI_PROC(void,SDL_RenderWindowToLogical,(SDL_Renderer *a, int b, int c, float *d, float *e),(a,b,c,d,e),)
|
||||||
SDL_DYNAPI_PROC(void,SDL_RenderLogicalToWindow,(SDL_Renderer *a, float b, float c, int *d, int *e),(a,b,c,d,e),)
|
SDL_DYNAPI_PROC(void,SDL_RenderLogicalToWindow,(SDL_Renderer *a, float b, float c, int *d, int *e),(a,b,c,d,e),)
|
||||||
SDL_DYNAPI_PROC(Uint32,SDL_hid_device_change_count,(void),(),return)
|
SDL_DYNAPI_PROC(Uint32,SDL_hid_device_change_count,(void),(),return)
|
||||||
|
SDL_DYNAPI_PROC(SDL_hid_device*,SDL_hid_open,(unsigned short a, unsigned short b, const wchar_t *c),(a,b,c),return)
|
||||||
|
SDL_DYNAPI_PROC(SDL_hid_device*,SDL_hid_open_path,(const char *a, int b),(a,b),return)
|
||||||
|
|
Loading…
Reference in New Issue