Input icon indicating copy to clipboard operation
Input copied to clipboard

Check for "quick tap" input

Open Craftis1024 opened this issue 2 years ago • 3 comments

Not sure if this already exists but it would be pretty neat to have a feature where you can check if you've quickly tapped the control stick on a gamepad to replicate smash bros' smash inputs.

Craftis1024 avatar Jun 15 '22 19:06 Craftis1024

Fantastic suggestion! We'll slate that for 5.1 as a native feature; until then you can lean into the input buffering feature to build the feature yourself e.g. input_check_release("verb", <playerIndex>) && input_check_pressed("verb", <playerIndex>, <quickTapDuration>)

JujuAdams avatar Jun 16 '22 09:06 JujuAdams

on reflection this is actually a different feature than the proposed method (#387): it’s an acceleration test: zero-to-threshold, not pressed-to-released. you can for example, complete the input with the thumbstick still engaged.

perhaps input_check_tapped(verb, tapDuration, <tapThreshold>, <playerIndex>)

offalynne avatar Jul 23 '22 09:07 offalynne

@Craftis1024 can you join us to discuss the feature on Discord ? https://discord.gg/8krYCqr

offalynne avatar Aug 07 '22 17:08 offalynne

https://github.com/JujuAdams/Input/commit/6e4bfe9e80dd2484864f1920b366ead2ec0b0aba

JujuAdams avatar Sep 25 '22 17:09 JujuAdams