History log of /haiku/src/preferences/input/MouseSettings.cpp
Revision Date Author Comments
# 68d1b97e 25-Apr-2022 Augustin Cavalier <waddlesplash@gmail.com>

Clean up mouse functions in InterfaceDefs.

* Fully remove unused and deprecated functions.
* Comment as to which functions are deprecated.
* Rename _by_name functions to be without the suffix, as this is C++
and there's no reason not to use overloads here.

Change-Id: I4e2152f17806605eb965795417013cea800e661e


# 84d27c65 08-Apr-2022 scph <scph1000@protonmail.com>

mouse: get/set acceleration factor by mouse name

* Create and use *_mouse_acceleration_by_name functions to replace older *_mouse_acceleration functions. Now consistent with related functions (such as *_mouse_speed_by_name).
* Passing mouse_name to HandleGetSetMouseAcceleration in the BMessage fixes mouse acceleration changes not applying properly.

Change-Id: I668cdbbbb81e3cb9069a3fc2ce77e6ef75ba8476
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5189
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 2ca13760 20-Aug-2021 Coldfirex <sakison@gmail.com>

Mass updating of OpenBeOS text to Haiku

No functional code altered.

https://dev.haiku-os.org/ticket/17197

Change-Id: I75cc74f6be0ad968fd77c31fbe5b0f650a6fe9e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4364
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 02dabf4b 29-Mar-2021 Saloni <saloniggoyal@gmail.com>

input preferences: Updates code according to Haiku guidelines

These are the changes using tool clang-format with argument --style=haiku and the changes that were not according to guidelines have been removed.

Change-Id: I2d34370e1e0a112da895001bd220bb82b7086e90
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3827
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# ace58491 14-Mar-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

Input preferences: fix selection of focus mode

- Replace the popup menu with a BOptionPopUp to simplify the code
- Remove an unused menu to select "warp mode"
- The focus mode is not stored in the mouse settings file
(config/settings_Mouse_settings), it is in another file
(config/settings/system/app_server/mouse). This file is not read or
written directly by mouse preferences, but we get the settings by
asking app_server. However, the code to get these was missing in one
place, resulting in these settings not being correctly initialized.

Fixes #16524

Change-Id: Ia1efc235c9d1a5408e3c6abc2526da7a0a639fa4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3796
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 471ecc87 10-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Mouse preferences: Build fixes


# 9aea709d 03-Sep-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Input prefs: handle errors

Various error handling cases were missing, which would lead to corrupt
settings and crashes. Add the missing error checks and make sure we
always revert to sane settings in case of problems.

Change-Id: Ib72621d6e4974345f5f6ee88e01a918cbf09d7ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3069
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 02ad22d6 04-Aug-2020 Preetpal Kaur <preetpalok123@gmail.com>

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 <pulkomandy@gmail.com>


# 37d79323 04-Aug-2020 Preetpal Kaur <preetpalok123@gmail.com>

Added get_set_mulitple_mouse_type() functions

Change-Id: I95f85a15a77c3a548bb672cb966ae7b13fcefcc8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3127
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 82430c40 26-Jun-2020 Preetpal Kaur <preetpalok123@gmail.com>

Mouse Preferences: store settings for multiple mouses.

Use a BMessage for the mouse settings. Store an array of mouse_setting
and an array of names for the corresponding mouses.

The input preferences can load the settings in both the old and new
format. If in the old format, the settings are applied to all mouses.

In this commit, input_server is not modified yet to use the new settings
format, leading to unusable mouse.

Change-Id: I37dd27cfa3ac55c6956cc4fb7fc8fabc85a59448
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2953
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 5b98fa06 25-Jul-2020 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

input server and preferences: fix debug build


# abbd654b 24-Apr-2020 Preetpal Kaur <preetpalok123@gmail.com>

Added 6th button in Mouse GUI

- Correct button size of 4 and 5 buttons in Mouse GUI.
- Button number are in squence now, added the default values.

Change-Id: I915077d11f9212c47c782fd9296b9f5b8909ed09
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2509
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 7522ed82 16-Jun-2020 Rob Gill <rrobgill@protonmail.com>

preferences/input Add default mappings to mouse buttons 4/5

* Adds default mappings to newly added buttons 4 and 5

* Include mappings of buttons 4 and 5 in settings dump

* Fixes Bug #16268

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: If466088e622a9e818f9eb7bd67c3a65154b9ad37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2924
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 5f7045a3 07-May-2020 Emir SARI <bitigchi@me.com>

Enable "Accept First Click" (supplementary)

The setting still fails to set "Accept First Click" by default. So
hopefully this commit fixes it once and for all.

Change-Id: Ia8d2a1fdf575a524d675fcd8692a86677c9f4e22
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2601
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 8272123e 17-Jul-2019 Preetpal Kaur <preetpalok123@gmail.com>

Connected Devices: Mouse, Touchpad and Keyboard

-Resolve some issues.
-Added the connected devices code in the main window.
-Replace BUTTON_DEFAULTS and BUTTON_REVERT with kMsgDefaults and kMsgRevert.

Change-Id: I3b0c86fc581056859239df0fbf2c085b8d168136
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1619
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 5e9685ca 01-May-2019 Preetpal Kaur <preetpalok123@gmail.com>

Completed Mouse and Touchppad preferences

Complete working and view of pointing devices(mouse and touchpad).

Resolve some issues.
Added the Jamfile

Change-Id: I4db021cb8c63971e5af60bd254c8b3b588d023e9
Reviewed-on: https://review.haiku-os.org/c/1426
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>