Giter Club home page Giter Club logo

Comments (2)

muzikbike avatar muzikbike commented on July 29, 2024

Since this key is by definition a duplicate of the sprint key, I considered having it be part of No More Useless Keybinds instead, but since it's a part of vanilla as well I'm not sure if deleting it could wreak havoc.

from amecs.

Klotzi111 avatar Klotzi111 commented on July 29, 2024

Since RandomPatches no longer seems to be receiving updates, could this functionality be added to this mod? It seems like the most fitting place for it.

Yes amecs would be a fitting mod for this. I will have a look at that.

This could also allow for another key modifier type to be implemented: pressing a key twice in quick succession (perhaps the time interval could be configurable as well?) could give a different outcome than a single press.

This is a good idea but sadly can not be implemented in a way people would want to use.
Because when pressing the button for the first time we (amecs) can not know that this key will be pressed again shortly. So the action for the normal key press will be triggered. Then when the second press comes we can additionally do the action for the configured double press but we can not undo the action from the single press before.
Alternatively we could wait (and not trigger the action) after receiving the first button press for the configured double press time. And when we get an second press in time we could do the configured action. And if the wait time exceeds we do the single press action. But this would mean we have delayed single press actions. Nobody wants that.
Maybe you have another idea how this could be implemented.

Since this key is by definition a duplicate of the sprint key, I considered having it be part of No More Useless Keybinds instead, but since it's a part of vanilla as well I'm not sure if deleting it could wreak havoc.

NMUK is not really fitting because the single press action (walk forward) and double press action (enable sprint) are different. NMUK only allows to add multiple keys to one action.

from amecs.

Related Issues (20)

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.