From 4f64a60ebfefe980b9a890251e2aea05eb9d4297 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 6 Mar 2016 19:03:06 +0100 Subject: [PATCH] Added recipe for PadBlocker. --- haiku-misc/padblocker/padblocker-1.0.recipe | 62 +++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 haiku-misc/padblocker/padblocker-1.0.recipe diff --git a/haiku-misc/padblocker/padblocker-1.0.recipe b/haiku-misc/padblocker/padblocker-1.0.recipe new file mode 100644 index 000000000..b18aedc1a --- /dev/null +++ b/haiku-misc/padblocker/padblocker-1.0.recipe @@ -0,0 +1,62 @@ +SUMMARY="A filter that blocks the touchpad while typing" +DESCRIPTION="Most OSs have drivers for laptops which will allow the automatic \ +dismissal of mouse-down events while typing. In other words: you accidentally \ +produce mouse clicks on your touchpad while typing. +Haiku doesn't have that functionality yet. + +The first time the filter is run, it will make a default settings file in \ +~/config/settings named "PadBlocker_settings". This is just a text file, \ +containing a number representing in milliseconds (1/1000 secs) the delay \ +between when the last key-up message is handled and when the next mouse-down \ +message will be allowed. +You can set this number to whatever you want, but I imagine anything more than \ +500 (half a second) would be counter-productive. + +Since the threshold is loaded on instantiation of the filter (i.e. when the \ +input_server is fired up) any changes you make won't be noticed until the \ +server is restarted, manually, or on reboot. + +To restart the input_server manually, open the Terminal and type: + /system/servers/input_server -q + +The mouse and keyboard will go dead for a second or two as the input server \ +restarts, and the add-ons are loaded." +HOMEPAGE="https://github.com/HaikuArchives/PadBlocker" +COPYRIGHT="2000 Shamyl Zakariya" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://github.com/HaikuArchives/PadBlocker/archive/cdd4ff71201491bb418ba4711b7ea637e3822d1e.tar.gz" +CHECKSUM_SHA256="7b8b62116afe212cbf43a27e46e73d03a092d94ab5e2b8170b66036f49f08797" +SOURCE_DIR="PadBlocker-cdd4ff71201491bb418ba4711b7ea637e3822d1e" + +ARCHITECTURES="x86_gcc2 x86 x86_64" + +PROVIDES=" + padblocker = $portVersion + addon:PadBlocker + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:make + cmd:g++ + " + +USER_SETTINGS_FILES="settings/PadBlocker_settings" + +BUILD() +{ + make $jobArgs OBJ_DIR=objects +} + +INSTALL() +{ + mkdir -p $addOnsDir/input_server/filters + cp objects/PadBlocker $addOnsDir/input_server/filters +}