Input: declare BString to get the Mouse Name

Change-Id: I3476f58839202a6fd8c93e325a15045963a9b7b2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3125
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Preetpal Kaur
2020-09-10 17:15:09 +00:00
committed by Adrien Destugues
parent 37d793236c
commit 02ad22d6c8
11 changed files with 166 additions and 35 deletions
+62
View File
@@ -350,3 +350,65 @@
\since BeOS R3
*/
/*!
\fn status_t get_mouse_type(int32* type)
\brief Get the number of buttons of the mouse.
If there are multiple mouses connected, the number of buttons for one of
them picked at random will be returned.
*/
/*!
\fn status_t set_mouse_type(int32 type)
\brief Set the number of buttons of the mouse.
\deprecated use set_mouse_type_by_name instead.
*/
/*!
\fn status_t get_mouse_type_by_name(BString mouse_name, int32* type)
\brief Get the number of buttons for a specific mouse.
Mouse names can be known from BInputDevice.
*/
/*!
\fn status_t set_mouse_type_by_name(BString mouse_name, int32* type)
\brief Configure the number of buttons for a specific mouse.
The setting is saved and persists accross reboots.
*/
/*!
\fn status_t get_mouse_speed(int32* speed)
\brief Get the mouse speed
If there are multiple mouses connected, this function return the speed
from a random one.
*/
/*!
\fn status_t set_mouse_speed(int32 speed)
\brief Set the mouse speed
\deprecated use set_mouse_speed_by_name instead.
*/
/*!
\fn status_t get_mouse_speed_by_name(BString mouse_name, int32* speed)
\brief Get the mouse speed setting for a specific mouse
*/
/*!
\fn status_t set_mouse_speed_by_name(BString mouse_name, int32 speed)
\brief Set the mouse speed for a specific mouse.
The setting is saved and persists accross reboots.
*/