Clear button buffer

Clears the input buffer for the specified action. Useful to avoid unintended buffered actions like airdodges or attacks.

Syntax
clear_button_buffer( input_index );

Returns
N/A

Examples
//attack_update.gml //allows the attack to cancel immediately into the aerial idle state using the shield button without buffering an airdodge: if (window == 2 && shield_pressed) { set_state( PS_IDLE_AIR ); clear_button_buffer( PC_SHIELD_PRESSED ); }