Git Product home page Git Product logo

inputintercept's Introduction

This fork

  • modified the CallbackAction delegate to also pass numeric device,
    enabling callbacks to selectively diverted devices.
  • changed Initialize() to detect null bytes from missing/defective interception_x*.dll,
    returning false, instead of crashing

This branch:  stripped

  • removes install-interception.exe and other stuff not wanted for SimHub plugin
  • requires @oblitum's Interception.zip package to install or remove that driver
  • removed redundant callback context argument

Note!

How-To

  • SetFilter(context, predicate, filter)
    • context, returned by CreateContext(), is information for known keyboards and/or mice;
      attaching or releasing any will not be detected without re-running CreateContext().
    • predicate is a device filtering routine, taking device as an argument
      and returning true if that device is interesting.
      For example:  return (12 == device); // second mouse
      • Sadly, predicates must be C routines, not C# methods;
        only interception_is_mouse and interception_is_keyboard are provided.
        Predicating to a single device must be done in the callback.
    • filter is a keyboard or mouse event bitmask;  see Enums.cs
      For all events from a selected mouse, use MouseFilter.All.

inputintercept's People

Contributors

0x2e757 avatar blekenbleu avatar mp3martin avatar punch5545 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.