Git Product home page Git Product logo

3dxpoint's People

Contributors

glodigit avatar

Watchers

 avatar

3dxpoint's Issues

Look ahead buffer to prevent overshoot

As the spacemouse is velocity based, there is inertia when it comes to changing direction, meaning that it's easy to overshoot or overcorrect and undershoot a UI target.

A proposed idea is to create a look-ahead buffer of the last 5 complete mouse positions, and the actual mouse position is the oldest element. If the average decerases beond a set limit, stop sending new cursor events.

I say "complete", as 3DxPoint receives X-axis and Y-axis events at different times, but always receives 0 as the last event on that axis. For example, the received values could be:

  • X = 4
  • Y = 12
  • X = 15
  • X = 18
  • Y = 30
  • X = 0
  • Y = 12
  • Y = 4
  • Y = 0

These should be put in the buffer like so: (4, 12) (15, 12) (18, 30) (0, 12) (0, 4) (0, 0). This is also for #1.

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.