mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-01 09:34:33 +00:00
Note that many things are considered mice and keyboards that you might not expect
This commit is contained in:
@@ -70,6 +70,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasKeyboard(void);
|
||||
/**
|
||||
* Get a list of currently connected keyboards.
|
||||
*
|
||||
* Note that this will include any device or virtual driver that includes keyboard functionality, including some mice, KVM switches, motherboard power buttons, etc. You should wait for input from a device before you consider it actively in use.
|
||||
*
|
||||
* \param count a pointer filled in with the number of keyboards returned
|
||||
* \returns a 0 terminated array of keyboards instance IDs which should be
|
||||
* freed with SDL_free(), or NULL on error; call SDL_GetError() for
|
||||
|
||||
@@ -95,6 +95,8 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasMouse(void);
|
||||
/**
|
||||
* Get a list of currently connected mice.
|
||||
*
|
||||
* Note that this will include any device or virtual driver that includes mouse functionality, including some game controllers, KVM switches, etc. You should wait for input from a device before you consider it actively in use.
|
||||
*
|
||||
* \param count a pointer filled in with the number of mice returned
|
||||
* \returns a 0 terminated array of mouse instance IDs which should be
|
||||
* freed with SDL_free(), or NULL on error; call SDL_GetError() for
|
||||
|
||||
Reference in New Issue
Block a user