Coder Social home page Coder Social logo

touchpadfilter's Introduction

TouchPadFilter

Input_server filter that disables the TouchPad while typing.

Most OSs have drivers for laptops which will allow the automatic dismissal of mouse-down events while typing. Haiku is not, to my knowledge, one of them. Fortunately for us, the API makes it remarkably simple to write filters to the input_server, which can listen in on the input stream and make any changes we deem 'useful'. TouchPadFilter takes care of this problem.

How to change sensitivity The first time the filter is run, it will make a default settings file in ~/config/settings named "TouchPadFilter_settings". This is just a text file, containing a number representing in milliseconds 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 (eg, when the input_server is fired up) any changes you make won't be noticed until the server is restarted, manually (/system/servers/input_server -q), or on reboot.

touchpadfilter's People

Watchers

 avatar  avatar  avatar  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.