[haiku-bugs] Re: [Haiku] #11673: Add mouse-down-filter-while-typing to Touchpad prefs (easy)

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 19 Mar 2019 20:15:13 -0000

#11673: Add mouse-down-filter-while-typing to Touchpad prefs (easy)
------------------------------------+----------------------------
   Reporter:  humdinger             |      Owner:  waddlesplash
       Type:  enhancement           |     Status:  assigned
   Priority:  normal                |  Milestone:  R1
  Component:  Preferences/Touchpad  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  0                     |   Platform:  All
------------------------------------+----------------------------

Comment (by pulkomandy):

 In the comment at the start of the sourcecode I found this:
 https://github.com/HaikuArchives/PadBlocker/blob/master/PadBlocker.cpp

Note:
makes a settings file in {{{home/config/settings/PadBlocker_settings}}} .
 Just a text file,
containing the sensitivity threshold in thousandths of
a second. This number represents the delay between the last
B_KEY_UP message and when the filter will allow
a B_MOUSE_DOWN message. Eg, if less than _threshold has
transpired between a B_KEY_DOWN and a B_MOUSE_DOWN, the mouse
down event will be skipped, cast into oblivion.

 So you just need to create that file and store the slider value in it.
 To write a file, you can use BFile (which is a BDataIO), or if you already
 know them, usual C (fprinf) or C++ (iostream) file operations.

-- 
Ticket URL: <https://dev.haiku-os.org/ticket/11673#comment:6>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: