GithubHelp home page GithubHelp logo

preetpalkaur3701 / padblocker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haikuarchives/padblocker

1.0 1.0 0.0 27 KB

A Haiku input_server filter to block the touchpad while you're typing.

License: MIT License

Makefile 53.98% C++ 46.02%

padblocker's Introduction

PadBlocker

PadBlocker is a Haiku input_server filter to block the touchpad while you're typing.

Most OSs have drivers for laptops which will allow the automatic dismissal of mouse-down events while typing. Haiku is not one of them (yet).

To install manually (not from a hpkg package)

Copy PadBlocker to ~/config/non-packaged/add-ons/input_server/filters).

To change sensitivity

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. Poof. You're good to go.

Thanks

PadBlocker was created originally by Shamyl Zakariya in 2000 for the BeOS under the name "TouchpadInputServerFilter".
He thanks to Magnus Landahl for writing his superb Be Debug Console without which he would not have been able to verify that this thing actually worked or not (it does).

padblocker's People

Stargazers

Preetpal Kaur avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.